We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 122d0b6 commit 7dc3cd9Copy full SHA for 7dc3cd9
lib/bald/__init__.py
@@ -238,8 +238,9 @@ def __getitem__(self, item):
238
# import datetime
239
# now = datetime.datetime.utcnow()
240
# print('\ndownloading: {}'.format(item))
241
- self.cache[item] = requests.get(item)
+ self.cache[item] = requests.get(item)
242
try:
243
+ # Attempt content negotiation, but pass if problems occur.
244
headers = {'Accept': 'application/rdf+xml'}
245
self.cache[item] = requests.get(item, headers=headers)
246
except Exception:
0 commit comments