Fixed (this time properly) crapping out when waiting for torrent data after enabling a column
This commit is contained in:
parent
fa32d4e3f4
commit
da5140e615
|
@ -72,15 +72,13 @@ def get_column_value(name,state):
|
||||||
try:
|
try:
|
||||||
col = columns[name]
|
col = columns[name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
log.error("No such column: %s",name)
|
return "Please Wait"
|
||||||
return None
|
|
||||||
|
|
||||||
if col[1]:
|
if col[1]:
|
||||||
try:
|
try:
|
||||||
args = [ state[key] for key in col[0] ]
|
args = [ state[key] for key in col[0] ]
|
||||||
except:
|
except:
|
||||||
log.error("Could not get column field: %s",col[0])
|
return "Please Wait"
|
||||||
return None
|
|
||||||
return col[1](*args)
|
return col[1](*args)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue