th3-z / kf2-magicked-admin

:spider: Mutator-free management, statistics, and in-game bot for ranked Killing Floor 2 servers
https://kf2-ma.th3-z.xyz
MIT License
32 stars 7 forks source link

[BUG] sqlite3.OperationalError: cannot commit - no transaction is active #158

Closed Yakonche closed 4 years ago

Yakonche commented 4 years ago

Describe the bug Error message preventing messages that must appear at the end of each round from appearing

To Reproduce Unable to reproduce

Desktop (please complete the following information):

Server (please complete the following information):

Log Exception in thread Thread-2: Traceback (most recent call last): File "C:\Users\Yakonche\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\server\game_tracker.py", line 32, in run File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\server\game_tracker.py", line 41, in poll File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\server\game_tracker.py", line 139, in update_players File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\server\server.py", line 202, in event_player_quit File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\web_admin\chat.py", line 89, in handle_message File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\chatbot\command_scheduler.py", line 77, in receive_message File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\chatbot\command_scheduler.py", line 90, in run_command File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\chatbot\chatbot.py", line 40, in command_handler File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\chatbot\commands\server_commands.py", line 326, in execute File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\chatbot\motd_updater.py", line 38, in update File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\server\server.py", line 80, in write_all_players File "M:\Documents\GitHub\kf2-magicked-admin\magicked_admin\database\database.py", line 238, in save_player sqlite3.OperationalError: cannot commit - no transaction is active

th3-z commented 4 years ago

fixed in 0.1.6 (switched to autocommit)