Connected to the "vdb" database
Updating citation fields
Getting accession numbers for sequences obtained from Genbank
Traceback (most recent call last):
File "vdb/zika_update.py", line 13, in <module>
connVDB.update(**args.__dict__)
File "/Users/trvrb/Dropbox/current-projects/nextstrain-db/vdb/update.py", line 18, in update
self.update_citations(table=self.sequences_table, **kwargs)
File "/Users/trvrb/Dropbox/current-projects/nextstrain-db/vdb/update.py", line 28, in update_citations
_, sequences = self.get_genbank_sequences(**kwargs)
File "/Users/trvrb/Dropbox/current-projects/nextstrain-db/vdb/update.py", line 47, in get_genbank_sequences
gi = self.get_GIs(accessions)
File "/Users/trvrb/Dropbox/current-projects/nextstrain-db/vdb/parse.py", line 194, in get_GIs
giList = Entrez.read(handle)['IdList']
File "/usr/local/lib/python2.7/site-packages/Bio/Entrez/__init__.py", line 372, in read
record = handler.read(handle)
File "/usr/local/lib/python2.7/site-packages/Bio/Entrez/Parser.py", line 203, in read
self.parser.ParseFile(handle)
File "/usr/local/lib/python2.7/site-packages/Bio/Entrez/Parser.py", line 511, in externalEntityRefHandler
self.dtd_urls.append(url)
UnboundLocalError: local variable 'url' referenced before assignment