Skip to content

Commit 22c919b

Browse files
committed
useless from None
1 parent bb242d9 commit 22c919b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/mkbuildoptglobals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def main_inspect(args: argparse.Namespace):
584584
try:
585585
extract_build_opt_from_path(buffer, args.build_opt_name, p)
586586
except ParsingException as e:
587-
raise e from None
587+
raise e
588588

589589
logging.info(buffer.getvalue())
590590

@@ -602,7 +602,7 @@ def main_synchronize(args: argparse.Namespace):
602602

603603
def as_path(p: str) -> pathlib.Path:
604604
if p.startswith("{") or p.endswith("}"):
605-
raise ValueError(f'"{p}" was not resolved') from None
605+
raise ValueError(f'"{p}" was not resolved')
606606

607607
return pathlib.Path(p)
608608

0 commit comments

Comments
 (0)