Skip to content

Commit

Permalink
fix: 🐛 Fix throw exception
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Dec 23, 2024
1 parent 5d3618a commit 124a857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/services/api_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,8 @@ class ApiService with JsonRPCUtil {
stack,
);

if (e.toString() == "Keychain doesn't exists") {
throw const ArchethicKeychainNotExistsException();
if (e is ArchethicKeychainNotExistsException) {
rethrow;
} else {
throw ArchethicConnectionException(e.toString());
}
Expand Down

0 comments on commit 124a857

Please sign in to comment.