Skip to content

Commit

Permalink
Update error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnazary committed Apr 7, 2024
1 parent 06e8bfd commit d892266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stockdex/justetf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(
self.isin = isin
self.ticker = ticker
self.security_type = security_type
if not isin:
if not isin or isin == "":
raise NoISINError("No ISIN provided, please provide an ISIN")

@property
Expand Down

0 comments on commit d892266

Please sign in to comment.