Skip to content
Snippets Groups Projects

Improve error message when reference is too large

Merged Vermaat requested to merge nc-error into master
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -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(
Loading