Skip to content

Fix program crash by removing staticmethod decorator#320

Open
0xHanan wants to merge 7 commits intolorenzodifuccia:masterfrom
0xHanan:0xHanan-remove-staticmethod-decorator
Open

Fix program crash by removing staticmethod decorator#320
0xHanan wants to merge 7 commits intolorenzodifuccia:masterfrom
0xHanan:0xHanan-remove-staticmethod-decorator

Conversation

@0xHanan
Copy link

@0xHanan 0xHanan commented Apr 28, 2022

No description provided.

forsakenquantum and others added 7 commits February 16, 2022 01:10
- download fonts separately from CSS
- scan for img tags with too many width/height specifiers and eliminate redundant ones
The program crash when running with certain IDs (i.e. 9781484258811). The error message is:
`[#] Unhandled Exception: name 'self' is not defined (type: NameError)`

The crash occurs because the static function `fix_overconstrained_images` use `self` . The function can't use self since it's static. By removing the @staticmethod decorator the program successfully complete the download.
@0xHanan 0xHanan changed the title 0x hanan remove staticmethod decorator Fix program crash by removing staticmethod decorator Apr 28, 2022
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.

3 participants