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

KeyError: 'md5' when calling api.notes #2

Open
tommed opened this issue Oct 18, 2010 · 1 comment
Open

KeyError: 'md5' when calling api.notes #2

tommed opened this issue Oct 18, 2010 · 1 comment

Comments

@tommed
Copy link

tommed commented Oct 18, 2010

      import snaptic as s
      api = s.Api('username', 'mypasswd')
      api.notes

Traceback (most recent call last):
  File "", line 1, in 
  File "build/bdist.cygwin-1.7.5-i686/egg/snaptic.py", line 519, in fget
  File "build/bdist.cygwin-1.7.5-i686/egg/snaptic.py", line 531, in get_notes
  File "build/bdist.cygwin-1.7.5-i686/egg/snaptic.py", line 791, in _parse_notes
KeyError: 'md5'

cygwin, windows 2008 r2, python 2.6.5

@tommed
Copy link
Author

tommed commented Oct 18, 2010

Same for Ubuntu 10.10 x64...

Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import snaptic
>>> api = snaptic.Api('tommed', 'mypasswd')
>>> api.notes
Traceback (most recent call last):
  File "", line 1, in 
  File "snaptic.py", line 519, in fget
    return self.get_notes()
  File "snaptic.py", line 531, in get_notes
    self._notes  = self._parse_notes(json_notes)
  File "snaptic.py", line 791, in _parse_notes
    media.append(Image(item['type'], item['md5'], item['id'], item['revision_id'], item['width'], item['height'], item['src'], image_data))
KeyError: 'md5'

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