We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ce2b4 commit 469a798Copy full SHA for 469a798
barcode/codex.py
@@ -209,7 +209,7 @@ def look_next() -> bool:
209
codes = self._new_charset("B")
210
return codes
211
212
- def _convert(self, char: str) -> int:
+ def _convert(self, char: str):
213
if self._charset == "A":
214
return code128.A[char]
215
if self._charset == "B":
@@ -223,6 +223,7 @@ def _convert(self, char: str) -> int:
223
value = int(self._buffer)
224
self._buffer = ""
225
return value
226
+ return None
227
raise RuntimeError(
228
f"Character {char} could not be converted in charset {self._charset}."
229
)
0 commit comments