From 054e1d0aa50f359ada27861846b4a3132c3d14cf Mon Sep 17 00:00:00 2001 From: Vxrtrauter <101264710+Vxrtrauter@users.noreply.github.com> Date: Sat, 31 Jan 2026 05:04:26 +0100 Subject: [PATCH] add error handling for update_settings --- core/network/libtorrent_int.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/network/libtorrent_int.py b/core/network/libtorrent_int.py index 4b65779..c33b794 100644 --- a/core/network/libtorrent_int.py +++ b/core/network/libtorrent_int.py @@ -89,6 +89,9 @@ def dl_status_loop(): def update_settings(): + if state.dl_session is None: + return + settings = { "upload_rate_limit": state.up_speed_limit, "download_rate_limit": state.down_speed_limit,