Skip to content

Commit

Permalink
fixup! [FIX] don't fail when there's an unknown field in a view
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Dec 22, 2023
1 parent 3480e90 commit cb6b461
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def _raise_view_error(
def _check_field_paths(self, node, field_paths, model_name, use):
"""Ignore UnboundLocalError when we squelched the raise about missing fields"""
try:
return View._check_field_paths._original_method(self, node, field_paths, model_name, use)
return View._check_field_paths._original_method(
self, node, field_paths, model_name, use
)
except UnboundLocalError:
pass

Expand Down

0 comments on commit cb6b461

Please sign in to comment.