Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
adding one more exception type for if work_result is None
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Jun 22, 2014
1 parent d887d81 commit ad100a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/workbench.py
Expand Up @@ -277,8 +277,8 @@ def work_request(self, worker_class, md5, subkeys=None):
tmp = tmp[key]
sub_results[key] = tmp
work_results = sub_results
except KeyError:
raise KeyError('Could not get one or more subkeys for: %s' % (work_results))
except (KeyError, TypeError):
raise RuntimeError('Could not get one or more subkeys for: %s' % (work_results))

# Clean it and ship it
work_results = self.data_store.clean_for_serialization(work_results)
Expand Down

0 comments on commit ad100a5

Please sign in to comment.