mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-24 02:37:05 +00:00
Fixed UP024 (os-error-alias): Replace aliased errors with OSError
This commit is contained in:
parent
b13cef9b1d
commit
9b961b7ba0
@ -142,7 +142,7 @@ def http_test(url, expected_status, postdata=None, qsargs=None, auth=None):
|
|||||||
# return response status code
|
# return response status code
|
||||||
if r.status_code != expected_status:
|
if r.status_code != expected_status:
|
||||||
r.raise_for_status() # anything but 200
|
r.raise_for_status() # anything but 200
|
||||||
raise IOError("Got unexpected status code %s." % r.status_code)
|
raise OSError("Got unexpected status code %s." % r.status_code)
|
||||||
|
|
||||||
# define how to run a test
|
# define how to run a test
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user