Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix maxSdkVersion warning in _get_permission_maxsdk method #976

Conversation

hamzaaitbenyissa
Copy link
Contributor

@hamzaaitbenyissa hamzaaitbenyissa commented Dec 24, 2023

Summary

This pull request addresses a potential issue in the _get_permission_maxsdk method within the Androguard APK module. The current implementation could lead to a TypeError when maxSdkVersion is None. The proposed fix converts maxSdkVersion to a string in the logger.warning call, ensuring that the warning message is correctly logged without causing a TypeError.

Changes Made

  • Modified the _get_permission_maxsdk method to handle the case where maxSdkVersion is None.

@erev0s erev0s merged commit 69ad51c into androguard:master Dec 24, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants