mirror of https://github.com/caronc/apprise
pep8 fixes
parent
4ee5ac22bd
commit
f8370c8624
|
@ -114,7 +114,7 @@ class NotifyRocketChat(NotifyBase):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'Dropped invalid channel/room ' +
|
'Dropped invalid channel/room '
|
||||||
'(%s) specified.' % recipient,
|
'(%s) specified.' % recipient,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -206,14 +206,14 @@ class NotifyRocketChat(NotifyBase):
|
||||||
# We had a problem
|
# We had a problem
|
||||||
try:
|
try:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'Failed to send Rocket.Chat notification: ' +
|
'Failed to send Rocket.Chat notification: '
|
||||||
'%s (error=%s).' % (
|
'%s (error=%s).' % (
|
||||||
RC_HTTP_ERROR_MAP[r.status_code],
|
RC_HTTP_ERROR_MAP[r.status_code],
|
||||||
r.status_code))
|
r.status_code))
|
||||||
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'Failed to send Rocket.Chat notification ' +
|
'Failed to send Rocket.Chat notification '
|
||||||
'(error=%s).' % (
|
'(error=%s).' % (
|
||||||
r.status_code))
|
r.status_code))
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@ class NotifyRocketChat(NotifyBase):
|
||||||
|
|
||||||
except requests.RequestException as e:
|
except requests.RequestException as e:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'A Connection error occured sending Rocket.Chat ' +
|
'A Connection error occured sending Rocket.Chat '
|
||||||
'notification.')
|
'notification.')
|
||||||
self.logger.debug('Socket Exception: %s' % str(e))
|
self.logger.debug('Socket Exception: %s' % str(e))
|
||||||
|
|
||||||
|
@ -255,14 +255,14 @@ class NotifyRocketChat(NotifyBase):
|
||||||
# We had a problem
|
# We had a problem
|
||||||
try:
|
try:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'Failed to authenticate with Rocket.Chat server: ' +
|
'Failed to authenticate with Rocket.Chat server: '
|
||||||
'%s (error=%s).' % (
|
'%s (error=%s).' % (
|
||||||
RC_HTTP_ERROR_MAP[r.status_code],
|
RC_HTTP_ERROR_MAP[r.status_code],
|
||||||
r.status_code))
|
r.status_code))
|
||||||
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'Failed to authenticate with Rocket.Chat server ' +
|
'Failed to authenticate with Rocket.Chat server '
|
||||||
'(error=%s).' % (
|
'(error=%s).' % (
|
||||||
r.status_code))
|
r.status_code))
|
||||||
|
|
||||||
|
@ -285,7 +285,7 @@ class NotifyRocketChat(NotifyBase):
|
||||||
|
|
||||||
except requests.RequestException as e:
|
except requests.RequestException as e:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'A Connection error occured authenticating to the ' +
|
'A Connection error occured authenticating to the '
|
||||||
'Rocket.Chat server.')
|
'Rocket.Chat server.')
|
||||||
self.logger.debug('Socket Exception: %s' % str(e))
|
self.logger.debug('Socket Exception: %s' % str(e))
|
||||||
return False
|
return False
|
||||||
|
@ -306,14 +306,14 @@ class NotifyRocketChat(NotifyBase):
|
||||||
# We had a problem
|
# We had a problem
|
||||||
try:
|
try:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'Failed to log off Rocket.Chat server: ' +
|
'Failed to log off Rocket.Chat server: '
|
||||||
'%s (error=%s).' % (
|
'%s (error=%s).' % (
|
||||||
RC_HTTP_ERROR_MAP[r.status_code],
|
RC_HTTP_ERROR_MAP[r.status_code],
|
||||||
r.status_code))
|
r.status_code))
|
||||||
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'Failed to log off Rocket.Chat server ' +
|
'Failed to log off Rocket.Chat server '
|
||||||
'(error=%s).' % (
|
'(error=%s).' % (
|
||||||
r.status_code))
|
r.status_code))
|
||||||
|
|
||||||
|
@ -327,7 +327,7 @@ class NotifyRocketChat(NotifyBase):
|
||||||
|
|
||||||
except requests.RequestException as e:
|
except requests.RequestException as e:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'A Connection error occured logging off the ' +
|
'A Connection error occured logging off the '
|
||||||
'Rocket.Chat server')
|
'Rocket.Chat server')
|
||||||
self.logger.debug('Socket Exception: %s' % str(e))
|
self.logger.debug('Socket Exception: %s' % str(e))
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -8,7 +8,7 @@ license_file = LICENSE
|
||||||
[pycodestyle]
|
[pycodestyle]
|
||||||
# We exclude packages we don't maintain
|
# We exclude packages we don't maintain
|
||||||
exclude = .eggs,.tox,gntp,tweepy,pushjet
|
exclude = .eggs,.tox,gntp,tweepy,pushjet
|
||||||
ignore = E722
|
ignore = E722,W503,W504
|
||||||
statistics = true
|
statistics = true
|
||||||
|
|
||||||
[aliases]
|
[aliases]
|
||||||
|
|
Loading…
Reference in New Issue