Update bare exceptions to specify Exception.

This will keep us from accidentally catching program-exiting exceptions
like KeyboardInterupt and SystemExit.
This commit is contained in:
Toshio Kuratomi 2018-09-07 17:59:46 -07:00
commit 3fba006207
320 changed files with 659 additions and 656 deletions

View file

@ -400,7 +400,7 @@ def main():
json_resp = jxmlease.parse(resp)
transformed.append(json_resp)
output.append(json_resp)
except:
except Exception:
raise ValueError(resp)
else:
transformed.append(resp)