Thing: Delete print statements for alerting to missing essentials

This commit is contained in:
Brian Simpson
2016-04-09 12:01:23 -07:00
parent 9e400d5fa1
commit b42a5dfb2b

View File

@@ -284,19 +284,11 @@ class DataThing(object):
need_ids = [n._id for n in need]
datas = cls._get_data(cls._type_id, need_ids)
to_save = {}
try:
essentials = object.__getattribute__(cls, "_essentials")
except AttributeError:
essentials = ()
for i in need:
#if there wasn't any data, keep the empty dict
i._t.update(datas.get(i._id, i._t))
i._loaded = True
for attr in essentials:
if attr not in i._t:
print "Warning: %s is missing %s" % (i._fullname, attr)
to_save[i._id] = i
#write the data to the cache