From 4a5781a1c6f4a8597ce671e9e4e036bf5d303897 Mon Sep 17 00:00:00 2001 From: Bready2Crumble <83258877+BraedenP232@users.noreply.github.com> Date: Wed, 8 Jul 2026 15:32:31 -0600 Subject: [PATCH] fix(wpa-sec): use set.add() instead of list.append() for skip_until_reload skip_until_reload is initialized as a set, but on_internet_available called .append() on it, which sets don't support. This raised an AttributeError whenever an upload failed and the handshake needed to be skipped until reload, masking the original upload error in the logs Signed-off-by: Bready2Crumble <83258877+BraedenP232@users.noreply.github.com> --- pwnagotchi/plugins/default/wpa-sec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/wpa-sec.py b/pwnagotchi/plugins/default/wpa-sec.py index f776d228..3e6e00d5 100644 --- a/pwnagotchi/plugins/default/wpa-sec.py +++ b/pwnagotchi/plugins/default/wpa-sec.py @@ -125,7 +125,7 @@ class WpaSec(plugins.Plugin): except requests.exceptions.RequestException: logging.exception("WPA_SEC: RequestException uploading %s, skipping until reload.", handshake) - self.skip_until_reload.append(handshake) + self.skip_until_reload.add(handshake) except OSError: logging.exception("WPA_SEC: OSError uploading %s, deleting from db.", handshake) cursor.execute('DELETE FROM handshakes WHERE path = ?', (handshake,))