Skip to content

Commit

Permalink
fix non platform wheel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Feb 2, 2025
1 parent d16b99f commit 2a7f4a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/auditwheel/main_repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def execute(args, parser: argparse.ArgumentParser):
wheel_abi = analyze_wheel_abi(
wheel_policy, wheel_file, exclude, args.DISABLE_ISA_EXT_CHECK
)
except NonPlatformWheel:
logger.info(NonPlatformWheel.message)
except NonPlatformWheel as e:
logger.info(e.message)
return 1

policy = wheel_policy.get_policy_by_name(args.PLAT)
Expand Down
4 changes: 2 additions & 2 deletions src/auditwheel/main_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def execute(args, parser: argparse.ArgumentParser):
winfo = analyze_wheel_abi(
wheel_policy, args.WHEEL_FILE, frozenset(), args.DISABLE_ISA_EXT_CHECK
)
except NonPlatformWheel:
logger.info(NonPlatformWheel.message)
except NonPlatformWheel as e:
logger.info(e.message)
return 1

libs_with_versions = [
Expand Down
2 changes: 1 addition & 1 deletion src/auditwheel/wheel_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, architecture: Architecture, libraries: list[str]) -> None:
super().__init__(msg)

@property
def message(self):
def message(self) -> str:
return self.args[0]


Expand Down

0 comments on commit 2a7f4a2

Please sign in to comment.