texlive[71596] Build/source/texk/web2c/tests/fix-changefile-lines.py:
commits+ascherer at tug.org
commits+ascherer at tug.org
Sun Jun 23 12:29:19 CEST 2024
Revision: 71596
https://tug.org/svn/texlive?view=revision&revision=71596
Author: ascherer
Date: 2024-06-23 12:29:18 +0200 (Sun, 23 Jun 2024)
Log Message:
-----------
Catch exceptional situation.
The simple 'return None' does not suit the assignment to the complex
'(part, section, line_number), tex_line' and raises a 'TypeError'
exception.
Modified Paths:
--------------
trunk/Build/source/texk/web2c/tests/fix-changefile-lines.py
Modified: trunk/Build/source/texk/web2c/tests/fix-changefile-lines.py
===================================================================
--- trunk/Build/source/texk/web2c/tests/fix-changefile-lines.py 2024-06-22 23:44:57 UTC (rev 71595)
+++ trunk/Build/source/texk/web2c/tests/fix-changefile-lines.py 2024-06-23 10:29:18 UTC (rev 71596)
@@ -146,8 +146,9 @@
as well as the line number of the first match line in the WEB file.
"""
while True:
- (part, section, line_number), tex_line = web_reader.next_line()
- if tex_line is None:
+ try:
+ (part, section, line_number), tex_line = web_reader.next_line()
+ except:
eprint("ERROR: Could not find match for line:")
eprint(f" {self._match_lines[0]}")
sys.exit(1)
More information about the tex-live-commits
mailing list.