mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Clean up and validate low static-scan findings
This commit is contained in:
@@ -108,7 +108,7 @@ def __format_message(e):
|
||||
error_path = e.path.popleft()
|
||||
# no need to catch IndexError exception explicity as
|
||||
# error_path is None if e.path has no items
|
||||
except Exception:
|
||||
except IndexError:
|
||||
pass
|
||||
return error_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user