Skip to content
Snippets Groups Projects
Commit 44b2030a authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Better catch a KeyError exception

parent 79446844
No related branches found
No related tags found
No related merge requests found
......@@ -253,7 +253,7 @@
try:
field_subviews = field['views']
except:
except KeyError:
return field
for view_mode, subview in field_subviews.iteritems():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment