Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
3cb18763
Commit
3cb18763
authored
Sep 18, 2020
by
carlosribas
Browse files
Fix error for RnaSummary without pretty_so_rna_type attribute
parent
e6769f25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
rnacentral/portal/views.py
rnacentral/portal/views.py
+4
-1
No files found.
rnacentral/portal/views.py
View file @
3cb18763
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment