Add call stack to fix 'return' statement issue

This commit is contained in:
Bartłomiej Pluta
2019-07-10 12:18:13 +02:00
parent 48638b832b
commit d10df10282
5 changed files with 40 additions and 8 deletions

View File

@@ -2,8 +2,9 @@ from smnp.error.base import SmnpException
class RuntimeException(SmnpException):
def __init__(self, msg, pos):
def __init__(self, msg, pos, environment=None):
super().__init__(msg, pos)
self.environment = environment
def _title(self):
return "Runtime Error"