Convert old style except blocks to except Exception as variable: blocks
[htsworkflow.git] / htsworkflow / util / hdquery.py
index 57c05e6025bf847e31e32875f44b34ea49c6adc6..37fd555d3fd6c0f55c2aba2676ceaf62425f309d 100644 (file)
@@ -23,7 +23,7 @@ try:
         #  the 2nd of which is the serial number
         return data.strip('\x00').split()[1]
     
-except ImportError, e:
+except ImportError as e:
     print >>sys.stderr, "hdquery requires py_sg"
 
     def get_hd_serial_num(device):