Skip to content

Commit

Permalink
:Bug: Fix: \x08 Title (close: #68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerohertz committed Nov 17, 2023
1 parent 97f52f9 commit 264cb70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zerohertzLib/api/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ def release_note(
bodies_version = defaultdict(list)
for release in releases:
version = self._parse_version(release["title"])
if "\x08" in release["title"]:
error_title = release["title"].replace("\x08", "-> \\x08 <-")
raise Exception(
f"""\\x08 is in '{release["html_url"]}'\n\tError Title: {error_title}"""
)
bodies_version[version].append(
[
release["number"],
Expand Down

0 comments on commit 264cb70

Please sign in to comment.