mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-06 16:44:29 +00:00
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:
|
||||
col = columns[name]
|
||||
except KeyError:
|
||||
log.error("No such column: %s",name)
|
||||
return None
|
||||
return "Please Wait"
|
||||
|
||||
if col[1]:
|
||||
try:
|
||||
args = [ state[key] for key in col[0] ]
|
||||
except:
|
||||
log.error("Could not get column field: %s",col[0])
|
||||
return None
|
||||
return "Please Wait"
|
||||
return col[1](*args)
|
||||
else:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user