0
0
Fork 0

Fix FakeDownloaders

main
Philipp Hagemeister 2013-04-30 18:48:45 +02:00
parent dbc50fdf82
commit 8749b71273
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class FakeDownloader(FileDownloader):
self.params = parameters self.params = parameters
def to_screen(self, s): def to_screen(self, s):
print(s) print(s)
def trouble(self, s): def trouble(self, s, tb=None):
raise Exception(s) raise Exception(s)
def extract_info(self, url): def extract_info(self, url):
self.result.append(url) self.result.append(url)

View File

@ -30,7 +30,7 @@ class FakeDownloader(object):
self.params = parameters self.params = parameters
def to_screen(self, s): def to_screen(self, s):
print(s) print(s)
def trouble(self, s): def trouble(self, s, tb=None):
raise Exception(s) raise Exception(s)
def download(self, x): def download(self, x):
self.result.append(x) self.result.append(x)