mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 812286 - Work around name collision that causes deprecation warning in Marionette exceptions, r=jgriffin
This commit is contained in:
parent
011f61e657
commit
7881148523
@ -6,16 +6,16 @@
|
||||
class MarionetteException(Exception):
|
||||
|
||||
def __init__(self, message=None, status=500, stacktrace=None):
|
||||
self.message = message
|
||||
self.msg = message
|
||||
self.status = status
|
||||
self.stacktrace = stacktrace
|
||||
|
||||
def __str__(self):
|
||||
if self.stacktrace:
|
||||
return '%s\nstacktrace:\n%s' % (str(self.message),
|
||||
return '%s\nstacktrace:\n%s' % (str(self.msg),
|
||||
''.join(['\t%s\n' % x for x in self.stacktrace.split('\n')]))
|
||||
else:
|
||||
return str(self.message)
|
||||
return str(self.msg)
|
||||
|
||||
class TimeoutException(MarionetteException):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user