Skip to content
This repository has been archived by the owner on Aug 9, 2019. It is now read-only.

Commit

Permalink
downloaders.DefaultDownloader: Modified exception handling to support…
Browse files Browse the repository at this point in the history
… python 3.2
  • Loading branch information
Felipe Martín committed Mar 15, 2013
1 parent 1912713 commit 3fbed9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datCrawl/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ def get(self, url):
response = urllib2.urlopen(req)
data = response.read()
return data
except Exception, e:
raise Exception(e)
except Exception:
raise Exception("Error downloading %s" % url)

0 comments on commit 3fbed9f

Please sign in to comment.