Skip to content

Commit

Permalink
Replace Exception with Traceback to debug better the errors on nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroCabrera committed Sep 22, 2022
1 parent 3aabb93 commit 19eccb0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PyFlow/Core/NodeBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from inspect import getargspec
from types import MethodType
import collections

import traceback
from PyFlow import getPinDefaultValueByType
from PyFlow import getRawNodeInstance
from PyFlow.Core.Common import *
Expand Down Expand Up @@ -392,15 +392,15 @@ def processNode(self, *args, **kwargs):
self.clearError()
self.checkForErrors()
self.afterCompute()
except Exception as e:
self.setError(e)
except Exception as e:
self.setError(traceback.format_exc() )
else:
try:
self.compute()
self.clearError()
self.checkForErrors()
except Exception as e:
self.setError(e)
except Exception as e:
self.setError(traceback.format_exc() )
delta = (datetime.now()-start)
self._computingTime =delta
self.computed.send()
Expand Down

0 comments on commit 19eccb0

Please sign in to comment.