Skip to content

Commit

Permalink
fix error message generation when
Browse files Browse the repository at this point in the history
  • Loading branch information
dschep committed Sep 8, 2018
1 parent 458797b commit 87b261f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ntfy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def notify(message, title, config=None, **kwargs):

args, _, _, defaults = getargspec(notifier.notify)
possible_args = set(args)
required_args = set(args[:-len(defaults)])
required_args = set(args) if defaults is None else set(args[:-len(defaults)])
required_args -= set(['title', 'message', 'retcode'])
unknown_args = set(backend_config) - possible_args
missing_args = required_args - set(backend_config)
Expand Down

0 comments on commit 87b261f

Please sign in to comment.