Skip to content
Snippets Groups Projects
Commit a3bc0590 authored by Vermaat's avatar Vermaat
Browse files

Improve error message when reference is too large

This will mainly help when the user tries to use a chromosomal NC
reference in the name checker.
parent 681bc10e
No related branches found
Tags v2.0.14
No related merge requests found
......@@ -382,8 +382,10 @@ class GenBankRetriever(Retriever):
return None
if length > settings.MAX_FILE_SIZE:
self._output.addMessage(
__file__, 4, 'ERETR', 'Could not retrieve {}.'.format(
name))
__file__, 4, 'ERETR',
'Could not retrieve {} (exceeds maximum file size of {} '
'megabytes).'.format(
name, settings.MAX_FILE_SIZE // 1048576))
return None
try:
net_handle = Entrez.efetch(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment