Skip to content

Commit c947f5d

Browse files
authored
parser: Make fourcc and value check for None explicitly (#56)
1 parent 576f1fa commit c947f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyimg4/parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(
8989
) -> None:
9090
super().__init__(data)
9191

92-
if fourcc and value:
92+
if fourcc is not None and value is not None:
9393
self._fourcc = self._verify_fourcc(fourcc)
9494
self._value = value
9595

0 commit comments

Comments
 (0)