mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Thing: Delete print statements for alerting to missing essentials
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user