Commit f169f0bc authored by Sebastien Robin's avatar Sebastien Robin

raise error instead of using logs in case of problems

git-svn-id: https://svn.erp5.org/repos/experimental@1956 bc57dcba-3610-0410-ab4f-dc20bb96b918
parent 0b0f625f
...@@ -151,8 +151,7 @@ class EssendexGateway(XMLObject): ...@@ -151,8 +151,7 @@ class EssendexGateway(XMLObject):
#just a test, no message id #just a test, no message id
return None return None
else: else:
LOG("Unknow SMS gateway result",INFO, result) raise ValueError("Unknown result", 0, result)
return None
security.declareProtected(Permissions.ManagePortal, 'getMessageStatus') security.declareProtected(Permissions.ManagePortal, 'getMessageStatus')
def getMessageStatus(self, message_id): def getMessageStatus(self, message_id):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment