let KeyboardInterrupt bypass

This commit is contained in:
Jun Zhou 2015-09-16 01:26:38 -04:00
parent fc93524cc3
commit 9283200c62

View File

@ -86,6 +86,8 @@ class Youku(VideoExtractor):
index = parse_query_param(video, 'f') index = parse_query_param(video, 'f')
try: try:
self.__class__().download_by_url(video, index=index, **kwargs) self.__class__().download_by_url(video, index=index, **kwargs)
except KeyboardInterrupt:
raise
except: except:
exc_type, exc_value, exc_traceback = sys.exc_info() exc_type, exc_value, exc_traceback = sys.exc_info()
traceback.print_exception(exc_type, exc_value, exc_traceback) traceback.print_exception(exc_type, exc_value, exc_traceback)