flake8: comply with new E722 rule

This commit is contained in:
AlanCoding
2017-10-23 13:57:12 -04:00
parent a313109b15
commit 90f63774f4
17 changed files with 30 additions and 30 deletions

View File

@@ -3775,7 +3775,7 @@ class ActivityStreamSerializer(BaseSerializer):
def get_object_association(self, obj):
try:
return obj.object_relationship_type.split(".")[-1].split("_")[1]
except:
except Exception:
pass
return ""