mirror of
https://github.com/seemoo-lab/opendrop.git
synced 2026-09-14 15:16:11 -04:00
assign None to receiver_name, which would otherwise be referenced before assignment, after a timeout
This commit is contained in:
committed by
Milan Stute
parent
8427681641
commit
e86defe355
@@ -125,6 +125,7 @@ class AirDropCli:
|
||||
try:
|
||||
receiver_name = client.send_discover()
|
||||
except TimeoutError:
|
||||
receiver_name = None
|
||||
pass
|
||||
else:
|
||||
receiver_name = None
|
||||
|
||||
Reference in New Issue
Block a user