]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Fix FakeDownloaders
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 30 Apr 2013 16:48:45 +0000 (18:48 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 30 Apr 2013 17:42:13 +0000 (19:42 +0200)
test/test_youtube_lists.py
test/test_youtube_subtitles.py

index 3722ff5ba2695315d55d0e4e3b5e8bd9b39838c0..78657b51ca43b1776596e612266cb0e8d9a07ebd 100644 (file)
@@ -29,7 +29,7 @@ class FakeDownloader(FileDownloader):
         self.params = parameters
     def to_screen(self, s):
         print(s)
-    def trouble(self, s):
+    def trouble(self, s, tb=None):
         raise Exception(s)
     def extract_info(self, url):
         self.result.append(url)
index b4909091b9216b2b426ca599882b21e2abc6820e..5b3f289afeebbca005c34535a61f3fa64177465e 100644 (file)
@@ -30,7 +30,7 @@ class FakeDownloader(object):
         self.params = parameters
     def to_screen(self, s):
         print(s)
-    def trouble(self, s):
+    def trouble(self, s, tb=None):
         raise Exception(s)
     def download(self, x):
         self.result.append(x)