Authenticator init section can't throw exception, and the message was pasted twice
This commit is contained in:
Archi
2021-10-15 00:26:25 +02:00
parent 002be87f24
commit 14052d9bbf

View File

@@ -1707,14 +1707,8 @@ namespace ArchiSteamFarm.Steam {
return false;
}
try {
authenticator.Init(this);
BotDatabase.MobileAuthenticator = authenticator;
} catch (Exception e) {
ArchiLogger.LogGenericException(e);
return false;
}
authenticator.Init(this);
BotDatabase.MobileAuthenticator = authenticator;
ArchiLogger.LogGenericInfo(Strings.BotAuthenticatorImportFinished);
@@ -1987,11 +1981,7 @@ namespace ArchiSteamFarm.Steam {
File.Delete(maFilePath);
} catch (Exception e) {
ArchiLogger.LogGenericException(e);
return;
}
ArchiLogger.LogGenericInfo(Strings.BotAuthenticatorImportFinished);
}
private void InitConnectionFailureTimer() {