diff --git a/app/gitcoinbot/management/commands/get_notifications.py b/app/gitcoinbot/management/commands/get_notifications.py index 87389b59bc7..c96e59468e6 100644 --- a/app/gitcoinbot/management/commands/get_notifications.py +++ b/app/gitcoinbot/management/commands/get_notifications.py @@ -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', '')