Skip to content

Commit 469a798

Browse files
maresbWhyNotHugo
authored andcommitted
Minimally make CI pass for _convert
1 parent 76ce2b4 commit 469a798

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

barcode/codex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def look_next() -> bool:
209209
codes = self._new_charset("B")
210210
return codes
211211

212-
def _convert(self, char: str) -> int:
212+
def _convert(self, char: str):
213213
if self._charset == "A":
214214
return code128.A[char]
215215
if self._charset == "B":
@@ -223,6 +223,7 @@ def _convert(self, char: str) -> int:
223223
value = int(self._buffer)
224224
self._buffer = ""
225225
return value
226+
return None
226227
raise RuntimeError(
227228
f"Character {char} could not be converted in charset {self._charset}."
228229
)

0 commit comments

Comments
 (0)