Update executor.py

This commit is contained in:
dementiev27 2020-08-08 19:11:50 +03:00 committed by GitHub
parent a183122e8c
commit 689fc8fb76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ def start_webhook(dispatcher, webhook_path, *, loop=None, skip_updates=None, on_
retry_after=retry_after,
route_name=route_name)
if custom_routes != None:
if custom_routes is not None:
for route in custom_routes:
executor.web_app.router.add_route(*route)