Skip to content

Commit

Permalink
Fix bug introduced by previous exception handling change
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroPatty committed Jan 25, 2024
1 parent 026e5ef commit ccaec93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion godata/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def has_collection(name: str) -> bool:
try:
collections = list_collections(True, False)
n_projects = len(list_projects(name, True))
except client.NotFound:
except GodataProjectError:
return False
return name in collections and n_projects > 0

Expand Down

0 comments on commit ccaec93

Please sign in to comment.