Navigation Menu

Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdfiles committed Apr 9, 2012
1 parent bcbef8c commit 746149d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kippthon/main.py
Expand Up @@ -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 ======================================= #
#
Expand Down

0 comments on commit 746149d

Please sign in to comment.