Fix error when attempting to clear flair templates that have never been set.

This commit is contained in:
Bryce Boe
2011-12-06 00:55:09 -08:00
committed by Neil Williams
parent 7e0140972f
commit 5348e6dce4

View File

@@ -187,7 +187,7 @@ class FlairTemplateBySubredditIndex(tdb_cassandra.Thing):
idx = cls.by_sr(sr_id)
except tdb_cassandra.NotFound:
# Everything went better than expected.
pass
return
for k in idx._index_keys():
del idx[k]