Skip to content

Commit a1b1d65

Browse files
committed
Bug fix
1 parent 09bbbcf commit a1b1d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rnacentral/portal/models/xref.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def get_gencode_transcript_id(self):
703703
def get_gencode_ensembl_url(self):
704704
"""Get Ensembl URL for GENCODE transcripts."""
705705
ensembl_transcript_id = self.get_gencode_transcript_id()
706-
if ensembl_transcript_id:
706+
if ensembl_transcript_id and self.accession.species:
707707
url = (
708708
"http://ensembl.org/{species}/Transcript/Summary?db=core;t={id}".format(
709709
id=ensembl_transcript_id,

0 commit comments

Comments
 (0)