From: Sergio de Almeida Cipriano Junior Date: Fri, 16 Apr 2021 23:36:09 -0300 Subject: The raise syntax no longer accepts comma-separated arguments Forwarded: not-needed --- examples/fromtwisted.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fromtwisted.py b/examples/fromtwisted.py index 641720c..f80dcef 100644 --- a/examples/fromtwisted.py +++ b/examples/fromtwisted.py @@ -21,7 +21,7 @@ def application(environ, start_response): try: ip = gethostbyname('twistedmatrix.com') return "%s has IP %s" % ('twistedmatrix.com', ip) - except Exception, e: + except Exception as e: return 'Error doing lookup: %s' % (e,) # A blocking API that will be called from the WSGI application, but actually