Don't swallow random exceptions

Catching any exception here will not display an error if e.g. entitiy
conversion fails.
master
Ivan Habunek 2025-03-06 08:23:12 +01:00
rodzic 8016fcdc02
commit d805cdffa5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 01DB3DD0D824504C
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -8,7 +8,7 @@ def find_instance(base_url: str) -> Instance:
try:
instance = api.get_instance(base_url).json()
return from_dict(Instance, instance)
except Exception:
except ApiError:
raise ConsoleError(f"Instance not found at {base_url}")