adjust message for status_code based exceptions
from: 5xx HTTP Error: Reason to : 5xx: Reason The "HTTP Error" part was in there to emulate Request's error messages from response.raise_for_status(), but it reads a lot better without.
This commit is contained in:
@@ -72,7 +72,7 @@ class TestExtractorResults(unittest.TestCase):
|
||||
except exception.StopExtraction:
|
||||
pass
|
||||
except exception.HttpError as exc:
|
||||
if re.match(r"5\d\d HTTP Error:", str(exc)):
|
||||
if re.match(r"5\d\d: ", str(exc)):
|
||||
self.skipTest(exc)
|
||||
raise
|
||||
|
||||
|
||||
Reference in New Issue
Block a user