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

Merge pull request #149 from mutalyzer/nc-error

Improve error message when reference is too large
parents 681bc10e a3bc0590
No related branches found
No related tags found
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