Correct exception raising
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 28 Nov 2012 17:21:06 +0000 (18:21 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 28 Nov 2012 17:21:06 +0000 (18:21 +0100)
youtube_dl/FileDownloader.py

index a135be3525d2cc699e9a8ae4b9447e96a3ee762d..48c8eb1261a9c68453c85bfce6286f4d83b2b623 100644 (file)
@@ -463,7 +463,7 @@ class FileDownloader(object):
                 try:
                     success = self._do_download(filename, info_dict)
                 except (OSError, IOError) as err:
-                    raise UnavailableVideoError
+                    raise UnavailableVideoError()
                 except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
                     self.trouble(u'ERROR: unable to download video data: %s' % str(err))
                     return