mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 22:38:09 -05:00
Fix error when attempting to clear flair templates that have never been set.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user