Fix flake8 warning

This commit is contained in:
Thomas Sileo 2018-05-21 17:26:48 +02:00
parent f0264241ee
commit 08077b58f0

View file

@ -483,7 +483,6 @@ class Accept(BaseActivity):
return True
class Undo(BaseActivity):
ACTIVITY_TYPE = ActivityTypes.UNDO
ALLOWED_OBJECT_TYPES = [ActivityTypes.FOLLOW, ActivityTypes.LIKE, ActivityTypes.ANNOUNCE]
@ -509,7 +508,8 @@ class Undo(BaseActivity):
def _should_purge_cache(self) -> bool:
obj = self.get_object()
try:
# Receiving a undo activity regarding an activity that was mentioning a published activity should purge the cache
# Receiving a undo activity regarding an activity that was mentioning a published activity
# should purge the cache
return obj._undo_should_purge_cache()
except NotImplementedError:
pass