Skip to content

Commit

Permalink
setting default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mwang87 committed Aug 22, 2024
1 parent eb22299 commit c0ffb71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnpsdata/publicdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def get_massive_private_dataset_filelist(accession, username, password):
return files_list


def get_massive_public_dataset_filelist(accession):
def get_massive_public_dataset_filelist(accession, timeout=60):
url = "https://massive.ucsd.edu/ProteoSAFe/dataset_files.jsp?accession={}".format(accession)

# Get Data
r = requests.get(url)
r = requests.get(url, timeout=timeout)

if r.status_code != 200:
print(r.text)
Expand Down

0 comments on commit c0ffb71

Please sign in to comment.