From 14052d9bbf37bcecf11059dbe91009a433cd362f Mon Sep 17 00:00:00 2001 From: Archi Date: Fri, 15 Oct 2021 00:26:25 +0200 Subject: [PATCH] Misc Authenticator init section can't throw exception, and the message was pasted twice --- ArchiSteamFarm/Steam/Bot.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/ArchiSteamFarm/Steam/Bot.cs b/ArchiSteamFarm/Steam/Bot.cs index 50a21957b..4b0caec77 100644 --- a/ArchiSteamFarm/Steam/Bot.cs +++ b/ArchiSteamFarm/Steam/Bot.cs @@ -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() {