Skip to content

Commit 780b17f

Browse files
committed
Remove redundant pin validation check
1 parent 4dd35f2 commit 780b17f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fmd_api/device.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@ async def wipe(self, pin: Optional[str] = None, *, confirm: bool = False) -> boo
206206
if not pin:
207207
raise OperationError("wipe() requires a PIN: pass pin='yourPIN123'")
208208
# Validate alphanumeric ASCII without spaces
209-
if not pin:
210-
raise OperationError("PIN cannot be empty")
211209
if not all(ch.isalnum() and ord(ch) < 128 for ch in pin):
212210
raise OperationError("PIN must contain only alphanumeric ASCII characters (a-z, A-Z, 0-9), no spaces")
213211
if " " in pin:

0 commit comments

Comments
 (0)