Update app.py
Browse files
app.py
CHANGED
@@ -180,6 +180,9 @@ def render_ui():
|
|
180 |
with tabs[1]:
|
181 |
st.header("Gene / Variant signals")
|
182 |
for g in res['genes']:
|
|
|
|
|
|
|
183 |
sym = g.get('symbol') or g.get('name') or ''
|
184 |
st.write(f"- **{sym}**")
|
185 |
if res['mesh_defs']:
|
|
|
180 |
with tabs[1]:
|
181 |
st.header("Gene / Variant signals")
|
182 |
for g in res['genes']:
|
183 |
+
# Skip non-dict entries (e.g., HTTP errors)
|
184 |
+
if not isinstance(g, dict):
|
185 |
+
continue
|
186 |
sym = g.get('symbol') or g.get('name') or ''
|
187 |
st.write(f"- **{sym}**")
|
188 |
if res['mesh_defs']:
|