python: Fix remaining bare excepts in codebase.

Fixes #2862.
This commit is contained in:
sinwar
2017-03-05 14:55:27 +05:30
committed by Tim Abbott
parent 08e1759ad0
commit 6f0564e9f4
17 changed files with 25 additions and 25 deletions

View File

@@ -48,7 +48,7 @@ def server_is_up(server, log_file):
try:
# We could get a 501 error if the reverse proxy is up but the Django app isn't.
return requests.get('http://127.0.0.1:9981/accounts/home').status_code == 200
except:
except Exception:
return False
@contextmanager