Skip to content

Commit

Permalink
chore: move asyncio debug flag to proper location
Browse files Browse the repository at this point in the history
  • Loading branch information
YoRyan committed Jun 23, 2021
1 parent 4373877 commit 90d8d2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apprise/Apprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ def notify(self, body, title='', notify_type=NotifyType.INFO,
notify_type=notify_type, body_format=body_format,
tag=tag, attach=attach,
interpret_escapes=interpret_escapes,
)
),
debug=self.debug
)

else:
Expand Down Expand Up @@ -377,8 +378,7 @@ def async_notify(self, *args, **kwargs):
else:
if len(coroutines) > 0:
# All notifications sent, return False if any failed.
return py3compat.asyncio.notify(
coroutines, debug=self.debug)
return py3compat.asyncio.notify(coroutines)

else:
# No notifications sent.
Expand Down
2 changes: 1 addition & 1 deletion apprise/py3compat/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# async reference produces a SyntaxError (E999) in Python v2.7
# For this reason we turn on the noqa flag
async def notify(coroutines, debug=False): # noqa: E999
async def notify(coroutines): # noqa: E999
"""
An async wrapper to the AsyncNotifyBase.async_notify() calls allowing us
to call gather() and collect the responses
Expand Down

0 comments on commit 90d8d2a

Please sign in to comment.