1
0
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:
Johan Andersson 2014-03-17 18:16:05 +01:00
commit 7fa19be9cd

View File

@ -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