Skip to content

Commit

Permalink
Guard against null provides_extra/dynamic (#15554)
Browse files Browse the repository at this point in the history
  • Loading branch information
di authored Mar 12, 2024
1 parent dc1d954 commit cf94b41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions warehouse/admin/templates/admin/projects/release_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,17 +311,21 @@ <h3>Metadata</h3>
<tr>
<td>Provides-Extra</td>
<td>
{% if release.provides_extra is not none %}
{% for extra in release.provides_extra %}
<code>{{ extra }}</code><br>
{% endfor %}
{% endif %}
</td>
</tr>
<tr>
<td>Dynamic</td>
<td>
{% if release.dynamic is not none %}
{% for dynamic in release.dynamic %}
<code>{{ dynamic }}</code><br>
{% endfor %}
{% endif %}
</td>
</tr>
</table>
Expand Down

0 comments on commit cf94b41

Please sign in to comment.