1
0
mirror of https://github.com/gsi-upm/soil synced 2025-08-23 19:52:19 +00:00

minor change in docs

This commit is contained in:
J. Fernando Sánchez
2020-03-13 12:50:05 +01:00
parent c8b8149a17
commit 6adc8d36ba
5 changed files with 47 additions and 30 deletions

View File

@@ -1 +1 @@
0.14.6
0.14.7

View File

@@ -216,9 +216,10 @@ class Simulation(NetworkSimulation):
try:
return self.run_trial(*args, **kwargs)
except Exception as ex:
c = ex.__cause__
c.message = ''.join(traceback.format_exception(type(c), c, c.__traceback__)[:])
return c
if ex.__cause__ is not None:
ex = ex.__cause__
ex.message = ''.join(traceback.format_exception(type(ex), ex, ex.__traceback__)[:])
return ex
def to_dict(self):
return self.__getstate__()