Skip to content

Commit

Permalink
chore: refactor for pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
macdiesel committed Nov 1, 2023
1 parent c46b5e4 commit 8a2db34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions enterprise_access/apps/subsidy_access_policy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,11 @@ def __new__(cls, *args, **kwargs):
policy_type = args[policy_name_field_index]
# get proxy class, by name, from current module
proxy_class = getattr(sys.modules[__name__], policy_type)
finally:
return super().__new__(proxy_class) # pylint: disable=lost-exception

except Exception: # pylint: disable=broad-except
pass

return super().__new__(proxy_class) # pylint: disable=lost-exception

def subsidy_record(self):
"""
Expand Down

0 comments on commit 8a2db34

Please sign in to comment.