1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Sergio de Almeida Cipriano Junior <sergiosacj@protonmail.com>
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
|