'NoneType' object has no attribute 'status'
Opened this issue · 0 comments
SilentServices commented
Hi, sometimes I receive the following error in the content dicovery module.
Traceback (most recent call last):
File "gyoithon.py", line 601, in <module>
max_target_byte))
File "/opt/GyoiThon/modules/Gyoi_ContentExplorer.py", line 107, in content_explorer
msg = '{}/{} Accessing : Status: {}, Url: {}'.format(idx + 1, len(signatures), res.status, target_url)
AttributeError: 'NoneType' object has no attribute 'status'
There seems to be no error checking if the result does not contain anything in Gyoi_ContentExplorer.py:
res, server_header, res_header, res_body, _ = self.utility.send_request('GET', target_url)
msg = '{}/{} Accessing : Status: {}, Url: {}'.format(idx + 1, len(signatures), res.status, target_url)
Can you please implement error checking?
Thanks and cheers