73
74
# HTTPErrors with a 5xx error code ("server problem") are
74
75
# a reason to retry the access again, as well as generic,
76
78
if (isinstance(error, HTTPError)
77
79
and 500 <= error.code <= 599
78
80
or isinstance(error, URLError) and
80
83
raise ApplicationError(str(error))