applied the except and raise fixers to the master branch to close the gap with py3
[nepi.git] / src / nepi / util / parallel.py
index bf86b57..49b27b5 100644 (file)
@@ -144,7 +144,7 @@ class ParallelRun(object):
         if self.delayed_exceptions:
             typ,val,loc = self.delayed_exceptions[0]
             del self.delayed_exceptions[:]
-            raise typ,val,loc
+            raise typ(val).with_traceback(loc)
         
     def __iter__(self):
         if self.rvqueue is not None: