Skip to content

Commit 251aa3e

Browse files
committed
Remove redundant check for spaces in PIN
1 parent f1f8d04 commit 251aa3e

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
@@ -208,7 +208,5 @@ async def wipe(self, pin: Optional[str] = None, *, confirm: bool = False) -> boo
208208
# Validate alphanumeric ASCII without spaces
209209
if not all(ch.isalnum() and ord(ch) < 128 for ch in pin):
210210
raise OperationError("PIN must contain only alphanumeric ASCII characters (a-z, A-Z, 0-9), no spaces")
211-
if " " in pin:
212-
raise OperationError("PIN cannot contain spaces")
213211
command = f"fmd delete {pin}"
214212
return await self.client.send_command(command)

0 commit comments

Comments
 (0)