2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-19 07:47:10 +00:00

stop verbose warnings, change colour on cave names

This commit is contained in:
2025-08-28 23:35:09 +03:00
parent bab1736636
commit 4933515be6
3 changed files with 12 additions and 13 deletions

View File

@@ -1654,15 +1654,14 @@ class LoadingSurvex:
This _should_ also check that the first QM survey point exists in the block in this survex file.
"""
message = f' ! QM "{survexblock.survexfile.path}" line:{comment} {qml=}'
print(message, file=sys.stderr)
qml = self.rx_qm_digit.match(comment) # checks for valid QM digit(s)
if not qml:
message = f' ! QM Unrecognised QM number in "{survexblock.survexfile.path}" line:{comment}'
print(message)
stash_data_issue(
parser="survex", message=message, url=None, sb=(survexblock.survexfile.path)
)
if not comment.startswith("QM doesn't go anywhere"):
message = f' ! QM Unrecognised QM number in "{survexblock.survexfile.path}" line:{comment}'
print(message)
stash_data_issue(
parser="survex", message=message, url=None, sb=(survexblock.survexfile.path)
)
return False
qmline = self.rx_qm.match(comment)
if qmline: