[Git][reproducible-builds/diffoscope][master] diffoscope.presenters.html: Avoid crash when page limit is None.

Chris Lamb (@lamby) gitlab at salsa.debian.org
Thu Aug 21 22:12:23 UTC 2025



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
a2b71a68 by Martin Joerg at 2025-08-21T21:11:20+00:00
diffoscope.presenters.html: Avoid crash when page limit is None.

- - - - -


1 changed file:

- diffoscope/presenters/html/html.py


Changes:

=====================================
diffoscope/presenters/html/html.py
=====================================
@@ -743,7 +743,7 @@ class HTMLPresenter(Presenter):
                     format(report_current, ","),
                     format(self.report_limit, ","),
                     format(page_current, ","),
-                    format(page_limit, ","),
+                    format(page_limit, ",") if page_limit else "-",
                     want_to_add,
                 )
                 if report_current + want_to_add > self.report_limit:



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/a2b71a6896b0135d3e7b1b01c57447d0a108b3d0

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/a2b71a6896b0135d3e7b1b01c57447d0a108b3d0
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20250821/79bafaa2/attachment.htm>


More information about the rb-commits mailing list