From 1132c2ddbf0566270e42cf457ea2e8e243e0eb2c Mon Sep 17 00:00:00 2001 From: Francesco Mannella Date: Thu, 23 Jun 2016 01:16:39 +0200 Subject: [PATCH] Correctly handle MPIPoolException arguments Passing non-optional arguments to the Exception baseclass class to avoid error messages as: Python: TypeError: __init__() takes exactly... --- mpipool/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mpipool/core.py b/mpipool/core.py index 13a31e7..1937f1d 100644 --- a/mpipool/core.py +++ b/mpipool/core.py @@ -267,4 +267,5 @@ def _error_function(task): class MPIPoolException(Exception): def __init__(self, tb): + super(MPIPoolException, self).__init__(tb) self.traceback = tb