Commit 10191d5b authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

[hal_json] Do not catch all exceptions because it is a coding crime

parent b83e3547
...@@ -275,7 +275,7 @@ def getAttrFromAnything(search_result, select, search_property_getter, kwargs): ...@@ -275,7 +275,7 @@ def getAttrFromAnything(search_result, select, search_property_getter, kwargs):
# Prefer getter (accessor) than raw property name # Prefer getter (accessor) than raw property name
try: try:
underlying_search_result = search_result.getObject() underlying_search_result = search_result.getObject()
except: except AttributeError:
underlying_search_result = search_result underlying_search_result = search_result
if contents_value is None: if contents_value is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment