Skip to content

Commit

Permalink
Bugfix: catch multiple types of exceptions (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 authored Aug 20, 2024
1 parent 3c06edb commit fca67b9
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 fca67b9

Please sign in to comment.