From e9ffef869c504123cc3a4732f8c5b45524e80e36 Mon Sep 17 00:00:00 2001 From: AnilDaoud Date: Sat, 21 Dec 2019 14:36:43 +0800 Subject: [PATCH] do not require auth when calling logout --- libs/qbittorrent/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/qbittorrent/client.py b/libs/qbittorrent/client.py index c524464..7c3d2c4 100644 --- a/libs/qbittorrent/client.py +++ b/libs/qbittorrent/client.py @@ -67,7 +67,7 @@ class QBittorrentClient(object): """ final_url = self.url + endpoint - if not self._is_authenticated: + if not self._is_authenticated and 'logout' not in endpoint: raise LoginRequired rq = self.session