mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-26 05:17:44 +01:00
Added debugging for tests and fixed setTorrentPause
This commit is contained in:
@@ -381,7 +381,7 @@ def setTorrentPath(result):
|
||||
|
||||
return True
|
||||
|
||||
def addTorrentPause(result):
|
||||
def setTorrentPause(result):
|
||||
|
||||
if not any(delugeweb_auth):
|
||||
_get_auth()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user