Skip to content

Commit

Permalink
Raise ValueError instead of Exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
NullHypothesis committed Jun 12, 2024
1 parent 445c41d commit 25bccf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiledb/cloud/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def login_to_region(region: Region, **kwargs):
:return:
"""
if not Region.contains(region):
raise Exception("Cloud region is invalid")
raise ValueError(f"region {region} is invalid")
login(**dict(kwargs, host=region.value))


Expand Down

0 comments on commit 25bccf9

Please sign in to comment.