Fixed (this time properly) crapping out when waiting for torrent data after enabling a column

This commit is contained in:
Asmageddon 2012-07-14 12:48:27 +02:00
parent fa32d4e3f4
commit da5140e615
1 changed files with 2 additions and 4 deletions

View File

@ -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: