Skip to content

Commit

Permalink
Fix error when attempting to clear flair templates that have never be…
Browse files Browse the repository at this point in the history
…en set.
  • Loading branch information
bboe authored and spladug committed Jan 10, 2012
1 parent 7e01409 commit 5348e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/models/flair.py
Expand Up @@ -187,7 +187,7 @@ def clear(cls, sr_id):
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]
Expand Down

0 comments on commit 5348e6d

Please sign in to comment.