Commit 62393753 authored by Ian Dennis Miller's avatar Ian Dennis Miller

try to catch auth error

parent ecc79aa5
Pipeline #260 passed with stage
in 14 seconds
# -*- coding: utf-8 -*-
import sys
import rdflib
import json
import configparser
from rdflib.namespace import RDF
from twython import Twython, TwythonRateLimitError
from twython import Twython, TwythonRateLimitError, TwythonAuthError
from . import make_uri
import time
import datetime
......@@ -93,6 +90,10 @@ class Downloader:
except TwythonRateLimitError:
success = False
self.wait_for_reset()
except TwythonAuthError as e:
print(e)
success = False
self.wait_for_reset()
for status in response:
self.snapshot.add_favorite_to_graph(subject, status)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment