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 PyPump network errors and make them pretty #22

Open
moggers87 opened this issue May 28, 2014 · 0 comments
Open

Catch PyPump network errors and make them pretty #22

moggers87 opened this issue May 28, 2014 · 0 comments

Comments

@moggers87
Copy link
Collaborator

p should catch network errors and shorten them to something more user-friendly

Example proxy error:

Traceback (most recent call last):
  File "/home/moggers/workspace/p/env/bin/p", line 5, in <module>
    pkg_resources.run_script('p==0.1', 'p')
  File "/home/moggers/workspace/p/env/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/moggers/workspace/p/env/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script
    exec_(script_code, namespace, namespace)
  File "/home/moggers/workspace/p/env/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_
    exec("""exec code in globs, locs""")
  File "<string>", line 1, in <module>
  File "/home/moggers/workspace/p/env/lib/python2.7/site-packages/p-0.1-py2.7.egg/EGG-INFO/scripts/p", line 634, in <module>

  File "/home/moggers/workspace/p/env/lib/python2.7/site-packages/p-0.1-py2.7.egg/EGG-INFO/scripts/p", line 483, in inbox

  File "build/bdist.linux-i686/egg/pypump/models/feed.py", line 96, in next
  File "build/bdist.linux-i686/egg/pypump/models/feed.py", line 82, in __next__
  File "build/bdist.linux-i686/egg/pypump/models/feed.py", line 71, in _build_cache
  File "build/bdist.linux-i686/egg/pypump/models/feed.py", line 163, in _request
  File "build/bdist.linux-i686/egg/pypump/pypump.py", line 322, in request
pypump.exception.PyPumpException: Request Failed to https://microca.st/api/proxy/UL6BQ7pZRG-cpV3qnsZD1Q (response: {"error":"Unable to retrieve proxy data"} | status: 500)
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