Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bioblend's make_get_request for authenticated request #1144

Merged
merged 1 commit into from
Feb 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions planemo/galaxy/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import traceback

import bioblend
import requests
from bioblend.util import attach_file
from galaxy.tool_util.client.staging import (
StagingInterace,
Expand Down Expand Up @@ -439,7 +438,7 @@ def _history_content_download(self, history_id, dataset_id, to_path, filename=No
if filename:
data["filename"] = filename

r = requests.get(url, params=data, verify=user_gi.verify, stream=True, timeout=user_gi.timeout)
r = user_gi.make_get_request(url, params=data, stream=True, timeout=user_gi.timeout)
r.raise_for_status()

with open(to_path, 'wb') as fp:
Expand Down