mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
Merge pull request #77 from olof/topic/catch_keyboardinterrupt
Catch KeyboardInterrupt to avoid traceback
This commit is contained in:
commit
7fa19be9cd
@ -6,7 +6,10 @@ if __package__ is None and not hasattr(sys, "frozen"):
|
||||
import os.path
|
||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
import svtplay_dl
|
||||
try:
|
||||
import svtplay_dl
|
||||
|
||||
if __name__ == '__main__':
|
||||
svtplay_dl.main()
|
||||
if __name__ == '__main__':
|
||||
svtplay_dl.main()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user