Skip to content

Commit

Permalink
parser: fix typo: raise instead of return for exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyanoxygen committed Jun 19, 2024
1 parent f44747e commit 51771f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acbs/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def parse_package_url(var: Dict[str, str], ignore_empty_srcs: bool) -> List[ACBS
arch=arch.upper())) or var.get('CHKSUMS')
if sources is None:
if not ignore_empty_srcs:
return ValueError(
raise ValueError(
'Source definition is missing. If that is intended, '
'perhaps you want to set DUMMYSRC=1.')
else:
Expand Down

0 comments on commit 51771f8

Please sign in to comment.