thing: Catch KeyErrors in _by_fullname.

A key error will happen if the thing type is invalid.
This commit is contained in:
Ricky Ramirez
2013-07-22 13:31:33 -07:00
parent 111459785d
commit 26e4f2c6ff

View File

@@ -485,7 +485,7 @@ class DataThing(object):
thing_id = int(thing_id, 36)
lookup[fullname] = (real_type, thing_id)
table.setdefault(real_type, []).append(thing_id)
except ValueError:
except (KeyError, ValueError):
if single:
raise NotFound