Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup

  • Loading branch information...
commit 746149dff597075a3f5ae16e62f5c47488f4c0c7 1 parent bcbef8c
@nerdfiles authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 kippthon/main.py
View
9 kippthon/main.py
@@ -52,8 +52,13 @@ def search(limit='5', q=''):
else:
print '\n'
except URLError, e:
- print '%s (%s)' % (e.msg, e.code,)
- print e.url
+ print 'URL: %s' % e.url
+ if hasattr(e, 'reason'):
+ print 'ERROR: Could not reach server.'
+ print e.reason
+ elif hasattr(e, 'code'):
+ print 'ERROR: Could not fulfill request.'
+ print 'DETAILS: %s (%s)' % (e.msg, e.code,)
# == LIST ======================================= #
#
Please sign in to comment.
Something went wrong with that request. Please try again.