Skip to content

Commit 66c704b

Browse files
Fix FileNotFoundError when trying to remove pin file
Commit fa4897a moved pin files to a subdirectory but forgot to change the part of the code where a pin file is removed after 3 wrong guesses. This commit fixes that.
1 parent 2cc025d commit 66c704b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimpleJadePinServer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def do_GET(self):
152152
print("Wrong pin (" + str(counter + 1) + ". attempt)")
153153

154154
if counter >= 2:
155-
os.remove(bytes2hex(pin_pubkey_hash) + ".pin")
155+
os.remove(pins_path + "/" + bytes2hex(pin_pubkey_hash) + ".pin")
156156
print("Too many wrong attempts")
157157
else:
158158
save_pin_fields(pin_pubkey_hash, saved_hash_pin_secret, saved_key, pin_pubkey, counter + 1)

0 commit comments

Comments
 (0)