]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/dakmultiprocessing.py
Convert exception handling to Python3 syntax.
[dak.git] / daklib / dakmultiprocessing.py
index 86fa74d5208a860a718edfa479568fcd0269608a..b709ecf558850f6f4ec2cf405e9e10b6a0c130cd 100644 (file)
@@ -66,9 +66,9 @@ def _func_wrapper(func, *args, **kwds):
     #  messages is a string used for logging
     try:
         return (func(*args, **kwds))
-    except SignalException, e:
+    except SignalException as e:
         return (PROC_STATUS_SIGNALRAISED, e.signum)
-    except Exception, e:
+    except Exception as e:
         return (PROC_STATUS_EXCEPTION, str(e))
     finally:
         # Make sure connections are closed. We might die otherwise.