From 6ef510457ae61eda543d9cd23c418e77cf90df22 Mon Sep 17 00:00:00 2001 From: alshain Date: Tue, 8 Feb 2011 00:26:09 +0100 Subject: [PATCH] Adds traceback if wrapper fails. --- CouchPotato.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CouchPotato.py b/CouchPotato.py index fdfcedfd..2e782803 100755 --- a/CouchPotato.py +++ b/CouchPotato.py @@ -5,6 +5,7 @@ import os from os.path import dirname, isfile import subprocess import sys +import traceback try: @@ -41,7 +42,11 @@ except ImportError: from couchpotato import cli except ImportError: print "[ERROR]: Something's seriously wrong." - print "Could not load couchpotato from src directory." + print "="*78 + traceback.print_exc() + print "="*78 + print "Aborting..." + sys.exit(1) else: # Running from Titanium raise NotImplementedError("Don't know how to do that.")