diff --git a/apprise/plugins/NotifyRocketChat.py b/apprise/plugins/NotifyRocketChat.py index 5251e344..bea67fb1 100644 --- a/apprise/plugins/NotifyRocketChat.py +++ b/apprise/plugins/NotifyRocketChat.py @@ -114,7 +114,7 @@ class NotifyRocketChat(NotifyBase): continue self.logger.warning( - 'Dropped invalid channel/room ' + + 'Dropped invalid channel/room ' '(%s) specified.' % recipient, ) @@ -206,14 +206,14 @@ class NotifyRocketChat(NotifyBase): # We had a problem try: self.logger.warning( - 'Failed to send Rocket.Chat notification: ' + + 'Failed to send Rocket.Chat notification: ' '%s (error=%s).' % ( RC_HTTP_ERROR_MAP[r.status_code], r.status_code)) except KeyError: self.logger.warning( - 'Failed to send Rocket.Chat notification ' + + 'Failed to send Rocket.Chat notification ' '(error=%s).' % ( r.status_code)) @@ -226,7 +226,7 @@ class NotifyRocketChat(NotifyBase): except requests.RequestException as e: self.logger.warning( - 'A Connection error occured sending Rocket.Chat ' + + 'A Connection error occured sending Rocket.Chat ' 'notification.') self.logger.debug('Socket Exception: %s' % str(e)) @@ -255,14 +255,14 @@ class NotifyRocketChat(NotifyBase): # We had a problem try: self.logger.warning( - 'Failed to authenticate with Rocket.Chat server: ' + + 'Failed to authenticate with Rocket.Chat server: ' '%s (error=%s).' % ( RC_HTTP_ERROR_MAP[r.status_code], r.status_code)) except KeyError: self.logger.warning( - 'Failed to authenticate with Rocket.Chat server ' + + 'Failed to authenticate with Rocket.Chat server ' '(error=%s).' % ( r.status_code)) @@ -285,7 +285,7 @@ class NotifyRocketChat(NotifyBase): except requests.RequestException as e: self.logger.warning( - 'A Connection error occured authenticating to the ' + + 'A Connection error occured authenticating to the ' 'Rocket.Chat server.') self.logger.debug('Socket Exception: %s' % str(e)) return False @@ -306,14 +306,14 @@ class NotifyRocketChat(NotifyBase): # We had a problem try: self.logger.warning( - 'Failed to log off Rocket.Chat server: ' + + 'Failed to log off Rocket.Chat server: ' '%s (error=%s).' % ( RC_HTTP_ERROR_MAP[r.status_code], r.status_code)) except KeyError: self.logger.warning( - 'Failed to log off Rocket.Chat server ' + + 'Failed to log off Rocket.Chat server ' '(error=%s).' % ( r.status_code)) @@ -327,7 +327,7 @@ class NotifyRocketChat(NotifyBase): except requests.RequestException as e: self.logger.warning( - 'A Connection error occured logging off the ' + + 'A Connection error occured logging off the ' 'Rocket.Chat server') self.logger.debug('Socket Exception: %s' % str(e)) return False diff --git a/setup.cfg b/setup.cfg index 8973070a..f1e329a3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,7 @@ license_file = LICENSE [pycodestyle] # We exclude packages we don't maintain exclude = .eggs,.tox,gntp,tweepy,pushjet -ignore = E722 +ignore = E722,W503,W504 statistics = true [aliases]