mirror of https://github.com/caronc/apprise
more test coverage
parent
c9abd69299
commit
357621c2c8
|
@ -140,6 +140,12 @@ class NotifySMPP(NotifyBase):
|
|||
super().__init__(**kwargs)
|
||||
|
||||
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)
|
||||
if not result:
|
||||
msg = 'The Account (From) Phone # specified ' \
|
||||
|
@ -147,11 +153,6 @@ class NotifySMPP(NotifyBase):
|
|||
self.logger.warning(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
|
||||
self.source = result['full']
|
||||
|
||||
|
|
Loading…
Reference in New Issue