dont' fail if can't connect to deluge. Test category from directory.

This commit is contained in:
clinton-hall 2015-01-16 16:58:39 +10:30
commit 12ac0ef701

View file

@ -476,7 +476,10 @@ def parse_deluge(args):
inputName = args[2]
inputHash = args[1]
inputID = args[1]
inputCategory = nzbtomedia.TORRENT_CLASS.core.get_torrent_status(inputID, ['label']).get()['label']
try:
inputCategory = nzbtomedia.TORRENT_CLASS.core.get_torrent_status(inputID, ['label']).get()['label']
except:
inputCategory = ''
return inputDirectory, inputName, inputCategory, inputHash, inputID