mirror of
https://github.com/ihabunek/toot.git
synced 2025-04-18 00:48:47 -04:00
Don't swallow random exceptions
Catching any exception here will not display an error if e.g. entitiy conversion fails.
This commit is contained in:
parent
8016fcdc02
commit
d805cdffa5
@ -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}")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user