Skip to content

Commit

Permalink
remove tuple parenthesis from get_ids lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mikerobeson committed Sep 9, 2024
1 parent 53821fa commit 38dd82e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rescript/ncbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_ncbi_data(
raise ValueError('Query or accession_ids must be supplied')
if api_key:
try:
(api_key,) = api_key.get_ids()
api_key, = api_key.get_ids()
_entrez_params['api_key'] = api_key
global _entrez_delay
_entrez_delay = 0.1
Expand Down Expand Up @@ -111,7 +111,7 @@ def get_ncbi_data_protein(
raise ValueError('Query or accession_ids must be supplied')
if api_key:
try:
(api_key,) = api_key.get_ids()
api_key, = api_key.get_ids()
_entrez_params['api_key'] = api_key
global _entrez_delay
_entrez_delay = 0.1
Expand Down

0 comments on commit 38dd82e

Please sign in to comment.