Skip to content

Commit

Permalink
Modified error message to help debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tgurbich committed Jul 25, 2024
1 parent bea6b38 commit ef1fec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genomeuploader/ena.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_run(self, run_accession, webin, password, attempt=0, search_params=None)
except (IndexError, TypeError, ValueError):
raise ValueError("Could not find run {} in ENA.".format(run_accession))
except:
raise Exception("Could not query ENA API: {}".format(response.text))
raise Exception("Could not query ENA API for run {}: {}".format(run_accession, response.text))

return run

Expand Down

0 comments on commit ef1fec4

Please sign in to comment.