Skip to content

Commit fe27980

Browse files
committed
Remove signal.alarm() calls
1 parent 4ee9879 commit fe27980

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

mariusz/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import os
99
import random
1010
import re
11-
import signal
1211
import sqlite3
1312
import subprocess
1413
import time
@@ -420,9 +419,8 @@ async def run(self) -> None:
420419

421420
async def handle_messages(self) -> None:
422421
"""For each unread message, determines whether and how to react."""
423-
signal.alarm(20)
424422
updates = await self.bot.get_updates(offset=self.update_id, timeout=10)
425-
signal.alarm(0)
423+
426424
for update in updates:
427425
if update.update_id:
428426
self.update_id = update.update_id + 1

0 commit comments

Comments
 (0)