mirror of https://github.com/caronc/apprise
more test coverage
parent
c9abd69299
commit
357621c2c8
|
@ -140,6 +140,12 @@ class NotifySMPP(NotifyBase):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
self.source = None
|
self.source = None
|
||||||
|
|
||||||
|
if not (self.user and self.password):
|
||||||
|
msg = 'No SMPP user/pass combination was provided'
|
||||||
|
self.logger.warning(msg)
|
||||||
|
raise TypeError(msg)
|
||||||
|
|
||||||
result = is_phone_no(source)
|
result = is_phone_no(source)
|
||||||
if not result:
|
if not result:
|
||||||
msg = 'The Account (From) Phone # specified ' \
|
msg = 'The Account (From) Phone # specified ' \
|
||||||
|
@ -147,11 +153,6 @@ class NotifySMPP(NotifyBase):
|
||||||
self.logger.warning(msg)
|
self.logger.warning(msg)
|
||||||
raise TypeError(msg)
|
raise TypeError(msg)
|
||||||
|
|
||||||
if not (self.user and self.password):
|
|
||||||
msg = 'No SMPP user/pass combination was provided'
|
|
||||||
self.logger.warning(msg)
|
|
||||||
raise TypeError(msg)
|
|
||||||
|
|
||||||
# Tidy source
|
# Tidy source
|
||||||
self.source = result['full']
|
self.source = result['full']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue