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