diff options
author | Martin Poirier <theeth@yahoo.com> | 2011-07-01 05:02:43 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2011-07-01 05:02:43 +0400 |
commit | a54291cdb6c93272ddfa49c4ece9677ccfd2cca4 (patch) | |
tree | a0eb4d62558593929d40e91a1c0d2df21ddb89d2 | |
parent | a82f4c03e749ada328b6031cfd085cab8f38f51c (diff) |
netrender
fix problem on web interface with blacklisted slaves no longer in slave list
-rw-r--r-- | netrender/master_html.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/netrender/master_html.py b/netrender/master_html.py index 87727320..da975184 100644 --- a/netrender/master_html.py +++ b/netrender/master_html.py @@ -285,8 +285,9 @@ def get(handler): headerTable("name", "address") for slave_id in job.blacklist: - slave = handler.server.slaves_map[slave_id] - rowTable(slave.name, slave.address[0]) + slave = handler.server.slaves_map.get(slave_id, None) + if slave: + rowTable(slave.name, slave.address[0]) endTable() |