fix: only try to show dependencies if object exists

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2023-01-12 11:47:00 +02:00
parent 4d0a982c51
commit 0e44687ab1

View file

@ -48,6 +48,7 @@
<h3>{{ "Required by" | tr }} ({{ reqs_count }})</h3>
<ul id="pkgreqslist">
{% for dep in required_by %}
{% if dep is not none %}
<li>
<a href="{{ dep.Package | package_link }}">
{{ dep.Package.Name }}
@ -61,6 +62,7 @@
<em>{{ dep | dep_extra }}</em>
</li>
{% endif %}
{% endfor %}
{% if not all_reqs and reqs_count > max_listing %}
<li>