Skip to content

Commit

Permalink
fix exception statements compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
tsgates committed Sep 5, 2011
1 parent 5b338b2 commit 04ac40d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylookup.py
Expand Up @@ -163,8 +163,8 @@ def update(db, urls, append=False):
parser = IndexProcessor(writer, dirname(url))
with closing(parser):
parser.feed(index)
except IOError as e:
print("Error: fetching file from the web: '%s'" % e)
except IOError:
print("Error: fetching file from the web: '%s'" % sys.exc_info())

def lookup(db, key, format_spec, out=sys.stdout, insensitive=True):
"""Lookup key from database and print to out.
Expand Down

0 comments on commit 04ac40d

Please sign in to comment.