Added debugging for tests and fixed setTorrentPause

This commit is contained in:
Noam
2016-02-16 21:04:42 +02:00
parent 86fb9bbd6c
commit ef9a2015eb
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -381,7 +381,7 @@ def setTorrentPath(result):
return True
def addTorrentPause(result):
def setTorrentPause(result):
if not any(delugeweb_auth):
_get_auth()
+8 -3
View File
@@ -929,9 +929,14 @@ def send_to_downloader(data, bestqual, album):
return
except Exception as e:
#exc_type, exc_obj, exc_tb = sys.exc_info()
#fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
#print(exc_type, fname, exc_tb.tb_lineno)
# REMOVE LATER - FOR DEBUGGING
super_debug = True
if super_debug:
import sys
exc_type, exc_obj, exc_tb = sys.exc_info()
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
logger.error('SUPER_DEBUG: ' + str(e) + ' -- ' + '; '.join([exc_type, fname, exc_tb.tb_lineno]))
######
logger.error(str(e))
else: # if headphones.CONFIG.TORRENT_DOWNLOADER == 2: