mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2026-07-28 14:37:00 -07:00
Merge pull request #586 from BraedenP232/patch-1
Fix AttributeError in wpa-sec plugin when skipping failed uploads
This commit is contained in:
@@ -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,))
|
||||
|
||||
Reference in New Issue
Block a user