Skip to content

Commit

Permalink
Bugfix: catch multiple types of exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Aug 14, 2024
1 parent 1c02968 commit 44ac3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icepyx/core/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ def show_custom_options(self, dictview=False):

try:
all(key in self._cust_options.keys() for key in keys)
except AttributeError or KeyError:
except (AttributeError, KeyError):
self._cust_options = is2ref._get_custom_options(
self.session, self.product, self._version
)
Expand Down

0 comments on commit 44ac3b4

Please sign in to comment.