[job:data] wrap exceptions in a dict (#7723)
fixes exception when using 'num-to-str' with '-j'
This commit is contained in:
@@ -913,7 +913,10 @@ class DataJob(Job):
|
|||||||
except exception.StopExtraction:
|
except exception.StopExtraction:
|
||||||
pass
|
pass
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
self.data.append((exc.__class__.__name__, str(exc)))
|
self.data.append((-1, {
|
||||||
|
"error" : exc.__class__.__name__,
|
||||||
|
"message": str(exc),
|
||||||
|
}))
|
||||||
except BaseException:
|
except BaseException:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user