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 06eb1a7 commit 5ff0cd7Copy full SHA for 5ff0cd7
1 file changed
barcode/codex.py
@@ -211,9 +211,9 @@ def _convert(self, char):
211
value = int(self._buffer)
212
self._buffer = ""
213
return value
214
- return None
215
216
+ raise RuntimeError(
+ f"Character {char} could not be converted in charset {self._charset}."
+ )
217
218
def _try_to_optimize(self, encoded):
219
if encoded[1] in code128.TO:
0 commit comments