mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Catching the wrong exception
This commit is contained in:
parent
270362db56
commit
8e4bd7efd9
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using SharpCompress.Crypto;
|
||||
using SharpCompress.Common;
|
||||
using Wabbajack.DTOs.Logins;
|
||||
using Wabbajack.Hashing.xxHash64;
|
||||
using Wabbajack.Networking.Http.Interfaces;
|
||||
@ -24,7 +24,7 @@ public class WabbajackApiTokenProvider : ITokenProvider<WabbajackApiState>
|
||||
{
|
||||
wjToken = (await MetricsPath.FromEncryptedJsonFile<string>())!;
|
||||
}
|
||||
catch (CryptoException)
|
||||
catch (CryptographicException)
|
||||
{
|
||||
MetricsPath.Delete();
|
||||
await CreateMetricsKey();
|
||||
|
Loading…
Reference in New Issue
Block a user