From b42a5dfb2bde71014f567e3da9b92920ec728e49 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Sat, 9 Apr 2016 12:01:23 -0700 Subject: [PATCH] Thing: Delete print statements for alerting to missing essentials --- r2/r2/lib/db/thing.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/r2/r2/lib/db/thing.py b/r2/r2/lib/db/thing.py index 0021ccbef..51bab24e7 100644 --- a/r2/r2/lib/db/thing.py +++ b/r2/r2/lib/db/thing.py @@ -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