Verbetering string format exceptions
This commit is contained in:
@@ -418,13 +418,13 @@ class LmwLoginFailure(Exception):
|
|||||||
self.message = message
|
self.message = message
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return("Login with user %s failed: %s", self.user, self.message)
|
return("Login with user %s failed: %s" % (self.user, self.message))
|
||||||
|
|
||||||
class LmwCmdWarn(Warning):
|
class LmwCmdWarn(Warning):
|
||||||
"""Exception fro LmwSip on a cmd"""
|
"""Exception fro LmwSip on a cmd"""
|
||||||
def __init__(self, cmd, message):
|
def __init__(self, cmd, message):
|
||||||
self.cmd = cmd
|
self.cmd = cmd.replace('\r', '')
|
||||||
self.message = message
|
self.message = message
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return("Cmd %s failed: %s", self.cmd, self.message)
|
return("Cmd %s failed: %s" %(self.cmd, self.message))
|
||||||
|
Reference in New Issue
Block a user