1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

Catch KeyboardInterrupt to avoid traceback

Fixes #75
This commit is contained in:
Olof Johansson 2014-03-17 17:47:15 +01:00
parent 2cece32246
commit 20dcc5e3ce

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