mirror of
https://github.com/caronc/apprise.git
synced 2024-11-21 15:43:27 +01:00
flake8 InvocationError's resolved (#238)
This commit is contained in:
parent
28f416093d
commit
b318c4d208
@ -161,7 +161,7 @@ class NotifyBase(URLBase):
|
||||
# Store the specified format if specified
|
||||
notify_format = kwargs.get('format', '')
|
||||
if notify_format.lower() not in NOTIFY_FORMATS:
|
||||
msg = 'Invalid notification format %s'.format(notify_format)
|
||||
msg = 'Invalid notification format {}'.format(notify_format)
|
||||
self.logger.error(msg)
|
||||
raise TypeError(msg)
|
||||
|
||||
|
@ -8,7 +8,7 @@ license_file = LICENSE
|
||||
[flake8]
|
||||
# We exclude packages we don't maintain
|
||||
exclude = .eggs,.tox,gntp
|
||||
ignore = E722,W503,W504,W605
|
||||
ignore = E741,E722,W503,W504,W605
|
||||
statistics = true
|
||||
builtins = _
|
||||
|
||||
|
@ -70,7 +70,6 @@ def test_office365_general(mock_post):
|
||||
obj = Apprise.instantiate(
|
||||
'o365://{tenant}:{email}/{tenant}/{secret}/{targets}'.format(
|
||||
tenant=tenant,
|
||||
client_id=client_id,
|
||||
email=email,
|
||||
secret=secret,
|
||||
targets=targets))
|
||||
|
@ -3201,7 +3201,7 @@ TEST_URLS = (
|
||||
# Expected notify() response
|
||||
'notify_response': False,
|
||||
}),
|
||||
('spush://salt:pass@{}'.format('X' * 14, 'A' * 16), {
|
||||
('spush://salt:pass@{}'.format('X' * 14), {
|
||||
# Now we'll test encrypted messages with new salt
|
||||
'instance': plugins.NotifySimplePush,
|
||||
# Set our response to OK
|
||||
|
Loading…
Reference in New Issue
Block a user