Make ErrorBoom a new style class

ErrorBoom won't pass PythonTwoRegressions.test_new_style_classes()
check otherwise.
This commit is contained in:
Sajith Sasidharan 2020-05-05 12:56:19 -04:00
parent edd4cab42b
commit ab298dab9c

View File

@ -28,7 +28,7 @@ DIR_HTML_TAG = '<html lang="en">'
class CompletelyUnhandledError(Exception):
pass
class ErrorBoom(resource.Resource):
class ErrorBoom(object, resource.Resource):
def render(self, req):
raise CompletelyUnhandledError("whoops")