Skip to content

Commit

Permalink
Update sanic/app.py
Browse files Browse the repository at this point in the history
Co-authored-by: Néstor Pérez <25409753+prryplatypus@users.noreply.github.com>
  • Loading branch information
ahopkins and prryplatypus committed Jan 6, 2022
1 parent 7f76eda commit eba894d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/app.py
Expand Up @@ -1554,7 +1554,7 @@ def _loop_add_task(
) -> Task:
if not isinstance(task, Future):
prepped = cls._prep_task(task, app, loop)
if sys.version_info == (3, 7):
if sys.version_info < (3, 8):
if name:
error_logger.warning(
"Cannot set a name for a task when using Python 3.7. Your "
Expand Down

0 comments on commit eba894d

Please sign in to comment.