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