Skip to content

Commit

Permalink
Fix KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
ammsa authored Nov 22, 2018
1 parent fdb2367 commit 6e69ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_documents(doc_ids, query=None):
h = httplib2.Http()
for doc_id in doc_ids:
url = '{}/{}'.format(DOCUMENTS_URL, doc_id)
resp, content = h.request(url.format(DOCUMENTS_URL, doc_id),
resp, content = h.request(url,
method="GET")
content = content.decode('utf-8', 'ignore')
date = get_date(content)
Expand Down

0 comments on commit 6e69ce9

Please sign in to comment.