Skip to content

Commit

Permalink
Correct session handling. Refs #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen Van Daele committed May 30, 2016
1 parent 122272b commit a8ec8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skosprovider_heritagedata/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def uri_to_graph(uri, **kwargs):
s = kwargs.get('session', requests.Session())
graph = rdflib.Graph()
try:
res = requests.get(uri)
res = s.get(uri)
except requests.ConnectionError as e:
raise ProviderUnavailableException("URI not available: %s" % uri)
if res.status_code == 404:
Expand Down

0 comments on commit a8ec8b8

Please sign in to comment.