diff --git a/resolv/resolvers/filebox.py b/resolv/resolvers/filebox.py index 4400e5a..0fc14ed 100644 --- a/resolv/resolvers/filebox.py +++ b/resolv/resolvers/filebox.py @@ -1,5 +1,5 @@ import re, time, urllib2 -from resolv.shared import ResolverError, Task +from resolv.shared import ResolverError, TechnicalError, Task class FileboxTask(Task): result_type = "video" @@ -21,7 +21,7 @@ class FileboxTask(Task): contents = self.fetch_page("http://www.filebox.com/embed-%s-970x543.html" % video_id) except urllib2.URLError, e: self.state = "failed" - raise ResolverError("Could not retrieve the video page.") + raise TechnicalError("Could not retrieve the video page.") matches = re.search("url: '([^']+)',", contents) diff --git a/resolv/resolvers/mediafire.py b/resolv/resolvers/mediafire.py index bc5f405..a891ab1 100644 --- a/resolv/resolvers/mediafire.py +++ b/resolv/resolvers/mediafire.py @@ -1,5 +1,5 @@ import re, urllib2 -from resolv.shared import ResolverError, unescape, Task +from resolv.shared import ResolverError, TechnicalError, unescape, Task class MediafireTask(Task): result_type = "file" @@ -13,7 +13,7 @@ class MediafireTask(Task): contents = self.fetch_page(self.url) except urllib2.URLError, e: self.state = "failed" - raise ResolverError("Could not retrieve the specified URL.") + raise TechnicalError("Could not retrieve the specified URL.") if '