summaryrefslogtreecommitdiff
path: root/tests/staticfile.py
diff options
context:
space:
mode:
authorJakub Stasiak <jakub@stasiak.at>2015-10-29 01:16:24 +0000
committerJakub Stasiak <jakub@stasiak.at>2015-10-29 01:18:09 +0000
commit3c5579cbb72a1fd5a4d8694b9b9923d7f84c12dd (patch)
tree4c67628b6a7204748b3e1279833cfa3ea7da055f /tests/staticfile.py
parent24d5ea57ea9349176c5f2e6d48e358c427fee2da (diff)
downloaduwsgi-3c5579cbb72a1fd5a4d8694b9b9923d7f84c12dd.tar.gz
misc: Eliminate blind excepts
The motivation is explained in 89b3840ab5fe2560a0801f6318dfdc54696bb1fd. * Where I was fairly certain what exception is expected I replaced "except:" with "except SomeConcreteClass:" (or otherwise simplified the code) * Where I wasn't sure what exaclty is being expected I just put "except Exception:" to at least skip the "special" exceptions
Diffstat (limited to 'tests/staticfile.py')
-rw-r--r--tests/staticfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/staticfile.py b/tests/staticfile.py
index 52e808a5..2fb51d90 100644
--- a/tests/staticfile.py
+++ b/tests/staticfile.py
@@ -5,12 +5,12 @@ filename = 'logo_uWSGI.png'
try:
filename = sys.argv[1]
-except:
+except IndexError:
pass
try:
content_type = sys.argv[2]
-except:
+except IndexError:
pass