Skip to content

Commit

Permalink
Merge pull request #753 from nathanchance/fix-new-pylint-warning
Browse files Browse the repository at this point in the history
scripts/build-local.py: Add else with assertion to clear up new pylint warning
  • Loading branch information
nathanchance authored May 17, 2024
2 parents 9077b04 + 5aa02e0 commit 86de325
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/build-local.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ def interrupt_handler(_signum, _frame):
distro = 'fedora'
elif 'openSUSE' in url:
distro = 'opensuse'
else:
raise RuntimeError(f"URL ('{url}') was not handled?")
cfg_str = cfg_str.replace(url, distro)
specific_output_dir = Path(output_dir, toolchain, target_arch, cfg_str)
specific_output_dir.mkdir(exist_ok=True, parents=True)
Expand Down

0 comments on commit 86de325

Please sign in to comment.