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

'NoneType' object has no attribute 'status' #37

Open
SilentServices opened this issue Jun 13, 2019 · 0 comments
Open

'NoneType' object has no attribute 'status' #37

SilentServices opened this issue Jun 13, 2019 · 0 comments

Comments

@SilentServices
Copy link

SilentServices commented Jun 13, 2019

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

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

No branches or pull requests

1 participant