Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Do not use bare except
Browse files Browse the repository at this point in the history
  • Loading branch information
zrzka committed Oct 25, 2017
1 parent e82ab1d commit 5a46f19
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blackmamba/script/run_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _parse_log_file():

try:
suite = ET.parse(_LOG_FILE_PATH).getroot()
except:
except Exception:
return

if not suite.tag == 'testsuite':
Expand Down
4 changes: 2 additions & 2 deletions blackmamba/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_local_release():
try:
with open(_RELEASE_PATH, 'rt') as input:
return json.load(input)
except:
except Exception:
pass


Expand Down Expand Up @@ -70,7 +70,7 @@ def _get_json(command):
def _get_latest_release():
try:
return _get_json('releases/latest')
except:
except Exception:
pass


Expand Down
2 changes: 1 addition & 1 deletion env.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def toggle():
'Switch to Working Copy version?',
'OK')
switch_to_working_copy()
except:
except Exception:
pass


Expand Down
2 changes: 1 addition & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _cleanup():
shutil.rmtree(path)
else:
os.remove(path)
except:
except Exception:
pass

_cleanup_paths = None
Expand Down

0 comments on commit 5a46f19

Please sign in to comment.