Commit 3cb18763 authored by carlosribas's avatar carlosribas
Browse files

Fix error for RnaSummary without pretty_so_rna_type attribute

parent e6769f25
......@@ -136,7 +136,10 @@ def rna_view(request, upi, taxid=None):
if taxid_filtering:
summary_text = render_to_string('portal/summary.html', vars(summary))
summary_text = re.sub(r'\s+', ' ', summary_text.strip())
summary_so_terms = zip(summary.pretty_so_rna_type, summary.so_rna_type)
try:
summary_so_terms = zip(summary.pretty_so_rna_type, summary.so_rna_type)
except AttributeError:
summary_so_terms = ''
context = {
'symbol_counts': symbol_counts,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment