Skip to content

Commit

Permalink
Minimally make CI pass for _convert
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb authored and WhyNotHugo committed Jul 9, 2024
1 parent 76ce2b4 commit 469a798
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion barcode/codex.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def look_next() -> bool:
codes = self._new_charset("B")
return codes

def _convert(self, char: str) -> int:
def _convert(self, char: str):
if self._charset == "A":
return code128.A[char]
if self._charset == "B":
Expand All @@ -223,6 +223,7 @@ def _convert(self, char: str) -> int:
value = int(self._buffer)
self._buffer = ""
return value
return None
raise RuntimeError(
f"Character {char} could not be converted in charset {self._charset}."
)
Expand Down

0 comments on commit 469a798

Please sign in to comment.