Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gitcoinco/web
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Nov 2, 2018
2 parents a684b64 + 54a8457 commit 4d1cbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/gitcoinbot/management/commands/get_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def handle(self, *args, **options):
notifications = get_gh_notifications()
print('Notifications Count: ', notifications.totalCount)
for notification in notifications:
if notification.reason == 'mention':
if hasattr(notification, '_subject') and notification.reason == 'mention':
try:
url = notification.subject.url
url = url.replace('/repos', '')
Expand Down

0 comments on commit 4d1cbb2

Please sign in to comment.