[Secure-testing-commits] r58184 - bin

Guido Guenther agx at moszumanska.debian.org
Fri Dec 1 15:38:34 UTC 2017


Author: agx
Date: 2017-12-01 15:38:34 +0000 (Fri, 01 Dec 2017)
New Revision: 58184

Modified:
   bin/report-vuln
Log:
report-vuln: use Python3 compatible exception syntax

Modified: bin/report-vuln
===================================================================
--- bin/report-vuln	2017-12-01 15:34:50 UTC (rev 58183)
+++ bin/report-vuln	2017-12-01 15:38:34 UTC (rev 58184)
@@ -61,7 +61,7 @@
     try:
         f = urllib.urlopen('https://cve.mitre.org/cgi-bin/cvename.cgi?%s' % param)
         resp = f.read()
-    except Exception, e:
+    except Exception as e:
         error('on doing HTTP request' + str(e))
 
     f.close()




More information about the Secure-testing-commits mailing list