correct spelling of occurred

This commit is contained in:
Chris Caron 2020-04-05 16:36:59 -04:00
parent 9eabae88ce
commit 261b9a7191
48 changed files with 66 additions and 66 deletions

View File

@ -215,7 +215,7 @@ class AttachHTTP(AttachBase):
except requests.RequestException as e:
self.logger.error(
'A Connection error occured retrieving HTTP '
'A Connection error occurred retrieving HTTP '
'configuration from %s.' % self.host)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -240,7 +240,7 @@ class ConfigHTTP(ConfigBase):
except requests.RequestException as e:
self.logger.error(
'A Connection error occured retrieving HTTP '
'A Connection error occurred retrieving HTTP '
'configuration from %s.' % self.host)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -304,7 +304,7 @@ class NotifyBoxcar(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Boxcar '
'A Connection error occurred sending Boxcar '
'notification to %s.' % (host))
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -256,7 +256,7 @@ class NotifyClickSend(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending {} ClickSend '
'A Connection error occurred sending {} ClickSend '
'notification(s).'.format(len(payload['messages'])))
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -379,7 +379,7 @@ class NotifyD7Networks(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending D7 Networks:%s ' % (
'A Connection error occurred sending D7 Networks:%s ' % (
', '.join(self.targets)) + 'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -370,14 +370,14 @@ class NotifyDiscord(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured posting {}to Discord.'.format(
'A Connection error occurred posting {}to Discord.'.format(
attach.name if attach else ''))
self.logger.debug('Socket Exception: %s' % str(e))
return False
except (OSError, IOError) as e:
self.logger.warning(
'An I/O error occured while reading {}.'.format(
'An I/O error occurred while reading {}.'.format(
attach.name if attach else 'attachment'))
self.logger.debug('I/O Exception: %s' % str(e))
return False

View File

@ -653,7 +653,7 @@ class NotifyEmail(NotifyBase):
except (SocketError, smtplib.SMTPException, RuntimeError) as e:
self.logger.warning(
'A Connection error occured sending Email '
'A Connection error occurred sending Email '
'notification to {}.'.format(self.smtp_host))
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -229,7 +229,7 @@ class NotifyEmby(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured authenticating a user with Emby '
'A Connection error occurred authenticating a user with Emby '
'at %s.' % self.host)
self.logger.debug('Socket Exception: %s' % str(e))
@ -392,7 +392,7 @@ class NotifyEmby(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured querying Emby '
'A Connection error occurred querying Emby '
'for session information at %s.' % self.host)
self.logger.debug('Socket Exception: %s' % str(e))
@ -477,7 +477,7 @@ class NotifyEmby(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured querying Emby '
'A Connection error occurred querying Emby '
'to logoff user %s at %s.' % (self.user, self.host))
self.logger.debug('Socket Exception: %s' % str(e))
@ -577,7 +577,7 @@ class NotifyEmby(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Emby '
'A Connection error occurred sending Emby '
'notification to %s.' % self.host)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -313,7 +313,7 @@ class NotifyEnigma2(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Enigma2 '
'A Connection error occurred sending Enigma2 '
'notification to %s.' % self.host)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -154,7 +154,7 @@ class NotifyFaast(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Faast notification.',
'A Connection error occurred sending Faast notification.',
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -294,7 +294,7 @@ class NotifyFlock(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Flock notification.'
'A Connection error occurred sending Flock notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -212,7 +212,7 @@ class NotifyGotify(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Gotify '
'A Connection error occurred sending Gotify '
'notification to %s.' % self.host)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -183,19 +183,19 @@ class NotifyGrowl(NotifyBase):
)
except errors.NetworkError:
msg = 'A network error occured sending Growl ' \
msg = 'A network error occurred sending Growl ' \
'notification to {}.'.format(self.host)
self.logger.warning(msg)
raise TypeError(msg)
except errors.AuthError:
msg = 'An authentication error occured sending Growl ' \
msg = 'An authentication error occurred sending Growl ' \
'notification to {}.'.format(self.host)
self.logger.warning(msg)
raise TypeError(msg)
except errors.UnsupportedError:
msg = 'An unsupported error occured sending Growl ' \
msg = 'An unsupported error occurred sending Growl ' \
'notification to {}.'.format(self.host)
self.logger.warning(msg)
raise TypeError(msg)
@ -260,7 +260,7 @@ class NotifyGrowl(NotifyBase):
# However, if the host/server is unavailable, you will get to this
# point of the code.
self.logger.warning(
'A Connection error occured sending Growl '
'A Connection error occurred sending Growl '
'notification to %s.' % self.host)
self.logger.debug('Growl Exception: %s' % str(e))

View File

@ -274,7 +274,7 @@ class NotifyIFTTT(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending IFTTT:%s ' % (
'A Connection error occurred sending IFTTT:%s ' % (
event) + 'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -238,7 +238,7 @@ class NotifyJSON(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending JSON '
'A Connection error occurred sending JSON '
'notification to %s.' % self.host)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -308,7 +308,7 @@ class NotifyJoin(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Join:%s '
'A Connection error occurred sending Join:%s '
'notification.' % target
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -310,7 +310,7 @@ class NotifyKavenegar(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Kavenegar:%s ' % (
'A Connection error occurred sending Kavenegar:%s ' % (
', '.join(self.targets)) + 'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -187,7 +187,7 @@ class NotifyKumulos(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Kumulos '
'A Connection error occurred sending Kumulos '
'notification.')
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -302,7 +302,7 @@ class NotifyMSG91(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending MSG91:%s '
'A Connection error occurred sending MSG91:%s '
'notification.' % ','.join(self.targets)
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -264,7 +264,7 @@ class NotifyMSTeams(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending MSTeams notification.')
'A Connection error occurred sending MSTeams notification.')
self.logger.debug('Socket Exception: %s' % str(e))
# We failed

View File

@ -298,7 +298,7 @@ class NotifyMailgun(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Mailgun:%s ' % (
'A Connection error occurred sending Mailgun:%s ' % (
email) + 'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -343,7 +343,7 @@ class NotifyMatrix(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Matrix notification.'
'A Connection error occurred sending Matrix notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))
# Return; we're done
@ -986,7 +986,7 @@ class NotifyMatrix(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured while registering with Matrix'
'A Connection error occurred while registering with Matrix'
' server.')
self.logger.debug('Socket Exception: %s' % str(e))
# Return; we're done

View File

@ -259,7 +259,7 @@ class NotifyMatterMost(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending MatterMost '
'A Connection error occurred sending MatterMost '
'notification{}.'.format(
'' if not channel
else ' to channel {}'.format(channel)))

View File

@ -297,7 +297,7 @@ class NotifyMessageBird(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending MessageBird:%s ' % (
'A Connection error occurred sending MessageBird:%s ' % (
target) + 'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -308,7 +308,7 @@ class NotifyNexmo(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Nexmo:%s '
'A Connection error occurred sending Nexmo:%s '
'notification.' % target
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -210,7 +210,7 @@ class NotifyNextcloud(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Nextcloud '
'A Connection error occurred sending Nextcloud '
'notification.',
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -251,7 +251,7 @@ class NotifyNotica(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Notica notification.',
'A Connection error occurred sending Notica notification.',
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -311,7 +311,7 @@ class NotifyNotifico(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Notifico '
'A Connection error occurred sending Notifico '
'notification.')
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -215,7 +215,7 @@ class NotifyProwl(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Prowl notification.')
'A Connection error occurred sending Prowl notification.')
self.logger.debug('Socket Exception: %s' % str(e))
# Return; we're done

View File

@ -352,14 +352,14 @@ class NotifyPushBullet(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured communicating with PushBullet.')
'A Connection error occurred communicating with PushBullet.')
self.logger.debug('Socket Exception: %s' % str(e))
return False, response
except (OSError, IOError) as e:
self.logger.warning(
'An I/O error occured while reading {}.'.format(
'An I/O error occurred while reading {}.'.format(
payload.name if payload else 'attachment'))
self.logger.debug('I/O Exception: %s' % str(e))
return False, response

View File

@ -576,7 +576,7 @@ class NotifyPushSafer(NotifyBase):
except (OSError, IOError) as e:
self.logger.warning(
'An I/O error occured while reading {}.'.format(
'An I/O error occurred while reading {}.'.format(
attachment.name if attachment else 'attachment'))
self.logger.debug('I/O Exception: %s' % str(e))
return False
@ -746,7 +746,7 @@ class NotifyPushSafer(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured communicating with PushSafer.')
'A Connection error occurred communicating with PushSafer.')
self.logger.debug('Socket Exception: %s' % str(e))
return False, response

View File

@ -291,7 +291,7 @@ class NotifyPushed(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Pushed notification.')
'A Connection error occurred sending Pushed notification.')
self.logger.debug('Socket Exception: %s' % str(e))
# Return; we're done

View File

@ -222,7 +222,7 @@ class NotifyPushjet(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Pushjet '
'A Connection error occurred sending Pushjet '
'notification to %s.' % self.host)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -461,7 +461,7 @@ class NotifyPushover(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Pushover:%s ' % (
'A Connection error occurred sending Pushover:%s ' % (
payload['device']) + 'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))
@ -470,7 +470,7 @@ class NotifyPushover(NotifyBase):
except (OSError, IOError) as e:
self.logger.warning(
'An I/O error occured while reading {}.'.format(
'An I/O error occurred while reading {}.'.format(
attach.name if attach else 'attachment'))
self.logger.debug('I/O Exception: %s' % str(e))
return False

View File

@ -502,7 +502,7 @@ class NotifyRocketChat(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Rocket.Chat '
'A Connection error occurred sending Rocket.Chat '
'{}:notification.'.format(self.mode))
self.logger.debug('Socket Exception: %s' % str(e))
@ -570,13 +570,13 @@ class NotifyRocketChat(NotifyBase):
# - TypeError = r.content is None
# - AttributeError = r is None
self.logger.warning(
'A commuication error occured authenticating {} on '
'A commuication error occurred authenticating {} on '
'Rocket.Chat.'.format(self.user))
return False
except requests.RequestException as e:
self.logger.warning(
'A connection error occured authenticating {} on '
'A connection error occurred authenticating {} on '
'Rocket.Chat.'.format(self.user))
self.logger.debug('Socket Exception: %s' % str(e))
return False
@ -622,7 +622,7 @@ class NotifyRocketChat(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured logging off the '
'A Connection error occurred logging off the '
'Rocket.Chat server')
self.logger.debug('Socket Exception: %s' % str(e))
return False

View File

@ -260,7 +260,7 @@ class NotifyRyver(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Ryver:%s ' % (
'A Connection error occurred sending Ryver:%s ' % (
self.organization) + 'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -368,7 +368,7 @@ class NotifySNS(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending AWS '
'A Connection error occurred sending AWS '
'notification to "%s".' % (to),
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -390,7 +390,7 @@ class NotifySendGrid(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending SendGrid '
'A Connection error occurred sending SendGrid '
'notification to {}.'.format(target))
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -272,7 +272,7 @@ class NotifySimplePush(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending SimplePush notification.')
'A Connection error occurred sending SimplePush notification.')
self.logger.debug('Socket Exception: %s' % str(e))
# Return; we're done

View File

@ -383,7 +383,7 @@ class NotifySinch(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Sinch:%s ' % (
'A Connection error occurred sending Sinch:%s ' % (
target) + 'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -622,14 +622,14 @@ class NotifySlack(NotifyBase):
# }
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured posting {}to Slack.'.format(
'A Connection error occurred posting {}to Slack.'.format(
attach.name if attach else ''))
self.logger.debug('Socket Exception: %s' % str(e))
return False
except (OSError, IOError) as e:
self.logger.warning(
'An I/O error occured while reading {}.'.format(
'An I/O error occurred while reading {}.'.format(
attach.name if attach else 'attachment'))
self.logger.debug('I/O Exception: %s' % str(e))
return False

View File

@ -171,7 +171,7 @@ class NotifyTechulusPush(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Techulus Push '
'A Connection error occurred sending Techulus Push '
'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -349,7 +349,7 @@ class NotifyTelegram(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A connection error occured posting Telegram '
'A connection error occurred posting Telegram '
'attachment.')
self.logger.debug('Socket Exception: %s' % str(e))
@ -436,12 +436,12 @@ class NotifyTelegram(NotifyBase):
# - TypeError = r.content is None
# - AttributeError = r is None
self.logger.warning(
'A communication error occured detecting the Telegram User.')
'A communication error occurred detecting the Telegram User.')
return 0
except requests.RequestException as e:
self.logger.warning(
'A connection error occured detecting the Telegram User.')
'A connection error occurred detecting the Telegram User.')
self.logger.debug('Socket Exception: %s' % str(e))
return 0
@ -631,7 +631,7 @@ class NotifyTelegram(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A connection error occured sending Telegram:%s ' % (
'A connection error occurred sending Telegram:%s ' % (
payload['chat_id']) + 'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -351,7 +351,7 @@ class NotifyTwilio(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Twilio:%s ' % (
'A Connection error occurred sending Twilio:%s ' % (
target) + 'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -194,7 +194,7 @@ class NotifyWebexTeams(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Webex Teams '
'A Connection error occurred sending Webex Teams '
'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -287,7 +287,7 @@ class NotifyXBMC(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending XBMC/KODI '
'A Connection error occurred sending XBMC/KODI '
'notification.'
)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -257,7 +257,7 @@ class NotifyXML(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending XML '
'A Connection error occurred sending XML '
'notification to %s.' % self.host)
self.logger.debug('Socket Exception: %s' % str(e))

View File

@ -312,7 +312,7 @@ class NotifyZulip(NotifyBase):
except requests.RequestException as e:
self.logger.warning(
'A Connection error occured sending Zulip '
'A Connection error occurred sending Zulip '
'notification to {}.'.format(target))
self.logger.debug('Socket Exception: %s' % str(e))