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

Catch ZLIB error #10

Closed
atoponce opened this issue Jan 4, 2014 · 0 comments
Closed

Catch ZLIB error #10

atoponce opened this issue Jan 4, 2014 · 0 comments

Comments

@atoponce
Copy link
Owner

atoponce commented Jan 4, 2014

When decrypting the note, it is possible that the recipient inputs the passphrase incorrectly, thus throwing the following ZLIB error. The recipient should be presented with providing the passphrase again, making infinite attempts at decrypting the note.

  File "/usr/share/pyshared/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/share/pyshared/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/share/pyshared/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/share/pyshared/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/share/pyshared/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/share/pyshared/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/share/pyshared/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/share/pyshared/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/aaron/src/d-note/d-note.py", line 145, in fetch_url
    plaintext = note_decrypt(privkey, random_url)
  File "/home/aaron/src/d-note/d-note.py", line 90, in note_decrypt
    return zlib.decompress(unpad(plaintext))
error: Error -3 while decompressing data: unknown compression method
@atoponce atoponce closed this as completed Jan 5, 2014
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