mirror of
https://github.com/ihabunek/toot.git
synced 2025-09-21 19:35:03 -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:
@@ -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}")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user