Commit dd7e1175 authored by Tomáš Peterka's avatar Tomáš Peterka

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

parent e2940b90
......@@ -275,7 +275,7 @@ def getAttrFromAnything(search_result, select, search_property_getter, kwargs):
# Prefer getter (accessor) than raw property name
try:
underlying_search_result = search_result.getObject()
except:
except AttributeError:
underlying_search_result = search_result
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