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

Fix crash in Retriever on downloading reference

parent e7b32ffa
No related branches found
No related tags found
No related merge requests found
......@@ -681,6 +681,8 @@ class GenBankRetriever(Retriever):
raw_data = handle.read()
md5sum = self._calcHash(raw_data)
UD = None
try:
reference = Reference.query.filter_by(checksum=md5sum).one()
except NoResultFound:
......
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