Skip to content

Commit a73c4f9

Browse files
committed
Error sync instead of async
1 parent 15641c2 commit a73c4f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
logger = logging.getLogger(__name__)
2020

2121
# Logs telegram api errors
22-
async def error(update, context):
22+
def error(update, context):
2323
"""Log Errors caused by Updates."""
24-
await logger.warning('Update "%s" caused error "%s"', update, context.error)
24+
logger.warning('Update "%s" caused error "%s"', update, context.error)
2525

2626

2727
def main():

0 commit comments

Comments
 (0)