Skip to content

Commit fca67b9

Browse files
authored
Bugfix: catch multiple types of exceptions (#560)
1 parent 3c06edb commit fca67b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

icepyx/core/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def show_custom_options(self, dictview=False):
870870

871871
try:
872872
all(key in self._cust_options.keys() for key in keys)
873-
except AttributeError or KeyError:
873+
except (AttributeError, KeyError):
874874
self._cust_options = is2ref._get_custom_options(
875875
self.session, self.product, self._version
876876
)

0 commit comments

Comments
 (0)