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

Issue with URLs #4

Open
phasmainmachina opened this issue Jul 26, 2013 · 0 comments · May be fixed by #6
Open

Issue with URLs #4

phasmainmachina opened this issue Jul 26, 2013 · 0 comments · May be fixed by #6

Comments

@phasmainmachina
Copy link

Hello,

When attempting to provide a URL, the module throws an exception that relates to your usage of with and a urllib2.urlopen instance. It appears this object does not support the implicit "exit()" that is invoked when using "with", and therefore bombs. Traceback:

Traceback (most recent call last):
  File "./a.py", line 7, in <module>
    report = v.get('https://secure.eicar.org/eicar.com.txt')
  File "/root/virustotal/virustotal.py", line 154, in get
    o = self._fileobj_to_fcontent(anything, filename)
  File "/root/virustotal/virustotal.py", line 140, in _fileobj_to_fcontent
    with fh as f:
AttributeError: addinfourl instance has no attribute '__exit__'
@katkad katkad linked a pull request Sep 20, 2013 that will close this issue
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 a pull request may close this issue.

1 participant