Remove catch (Exception)
MODIFY
WalletWasabi.Gui/CommandLine/PasswordFinderCommand.cs
WalletWasabi.Gui/CommandLine/PasswordFinderCommand.cs
@@ -76,7 +76,7 @@ namespace WalletWasabi.Gui.CommandLine
PasswordFinder.Find(EncryptedSecret, Language, UseNumbers, UseSymbols);
}
}
- catch (Exception)
+ catch
{
Logger.LogCritical($"There was a problem interpreting the command, please review it.");
error = true;

MODIFY
WalletWasabi.Gui/Helpers/Utils.cs
WalletWasabi.Gui/Helpers/Utils.cs
@@ -18,7 +18,7 @@ namespace WalletWasabi.Gui.Helpers
return true;
}
}
- catch (Exception)
+ catch
{
// do nothing
}

MODIFY
WalletWasabi/Helpers/IoHelpers.cs
WalletWasabi/Helpers/IoHelpers.cs
@@ -121,7 +121,7 @@ namespace System.IO
}
return false;
}
- catch (Exception)
+ catch
{
return false;
}

MODIFY
WalletWasabi/Helpers/PasswordHelper.cs
WalletWasabi/Helpers/PasswordHelper.cs
@@ -95,7 +95,7 @@ namespace WalletWasabi.Helpers
{
GetMasterExtKey(keyManager, password, out compatibilityPasswordUsed);
}
- catch (Exception)
+ catch
{
return false;
}

MODIFY
WalletWasabi/Mono/OptionSet.cs
WalletWasabi/Mono/OptionSet.cs
@@ -266,7 +266,7 @@ namespace Mono.Options
added.Add(option.Names[i]);
}
}
- catch (Exception)
+ catch
{
foreach (string name in added)
{

MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -425,7 +425,7 @@ namespace WalletWasabi.Services
var blockBytes = await File.ReadAllBytesAsync(filePath, cancel);
block = Block.Load(blockBytes, Synchronizer.Network);
}
- catch (Exception)
+ catch
{
// In case the block file is corrupted and we get an EndOfStreamException exception
// Ignore any error and continue to re-downloading the block.

Remove catch (Exception)