mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
handle KeyboardInterrupt silently
This commit is contained in:
parent
66698f71b8
commit
82f2b8d411
@ -47,4 +47,8 @@ def any_download_playlist(url, output_dir = '.', merge = True, info_only = False
|
||||
m.download_playlist(url, output_dir = output_dir, merge = merge, info_only = info_only)
|
||||
|
||||
def main():
|
||||
script_main('you-get', any_download, any_download_playlist)
|
||||
import sys
|
||||
try:
|
||||
script_main('you-get', any_download, any_download_playlist)
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user