Prefer if/else over try/catch in Error.__init__
@@ -19,9 +19,9 @@ class Exception (BaseException):
#__pragma__ ('kwargs')
def __init__ (self, *args, **kwargs):
self.__args__ = args
- try:
+ if kwargs.error != None:
self.stack = kwargs.error.stack # Integrate with JavaScript Error object
- except:
+ else:
self.stack = 'No stack trace available'
#__pragma__ ('nokwargs')
