Исправление падений

This commit is contained in:
justuser-31 2026-02-05 20:44:14 +03:00
parent 64c46c81cb
commit 5425810c95
2 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import os
import sqlite3
from datetime import datetime
from http.server import BaseHTTPRequestHandler
from threading import Thread
from urllib.parse import parse_qs, quote, unquote, urlparse
import database

View File

@ -40,4 +40,10 @@ def main():
if __name__ == "__main__":
main()
while True:
try:
main()
except KeyboardInterrupt:
exit(0)
except:
pass