We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17b80c1 commit 1bd442dCopy full SHA for 1bd442d
simpleflow/execute.py
@@ -153,8 +153,17 @@ def execute(*args, **kwargs):
153
excline = exclines[0]
154
else:
155
excline = exclines[1]
156
- exception = pickle.loads(
157
- base64.b64decode(excline.rstrip()))
+
+ try:
158
+ exception = pickle.loads(
159
+ base64.b64decode(excline.rstrip()))
160
+ except TypeError:
161
+ cls, msg = exclines[-1].split(':', 1)
162
+ exception = eval('{}("{}")'.format(
163
+ cls.strip(),
164
+ msg.strip(),
165
+ ))
166
167
raise exception
168
return json.loads(output)
169
0 commit comments