diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-09-26 00:18:41 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-09-26 00:18:41 +0300 |
commit | 78a62a1551c077347d857f8664e7b4bc524e0a78 (patch) | |
tree | b6ed4c309d45492bf67f789f7ada5dbd2d788f68 /parsers/survex.py | |
parent | f0195682f205e2f701b51a29a0385b6da2e66f89 (diff) | |
download | troggle-78a62a1551c077347d857f8664e7b4bc524e0a78.tar.gz troggle-78a62a1551c077347d857f8664e7b4bc524e0a78.tar.bz2 troggle-78a62a1551c077347d857f8664e7b4bc524e0a78.zip |
error msg was incorrect. fix.
Diffstat (limited to 'parsers/survex.py')
-rw-r--r-- | parsers/survex.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/parsers/survex.py b/parsers/survex.py index 44f72f8..c426c73 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -757,7 +757,11 @@ class LoadingSurvex(): with open(fpending, "r") as fo: cids = fo.readlines() for cid in cids: - self.pending.add(cid.rstrip('\n').upper()) + id = cid.rstrip('\n').upper() + if cid.startswith("162"): + self.pending.add(id) + else: + self.pending.add("1623-" + id) if headpath in self.ignorenoncave: message = f" - {headpath} is <ignorenoncave> (while creating '{includelabel}' sfile & sdirectory)" @@ -776,7 +780,7 @@ class LoadingSurvex(): # print(f'! ALREADY PENDING {caveid}',file=sys.stderr) return - message = f" ! Error: not a cave nor ignorable. headpath:'{headpath}' while parsing '{includelabel=}.svx' at depth:[{len(depth)}]. ignore prefix list:'{self.ignoreprefix}'" + message = f" ! Error: {caveid} not a cave nor ignorable. headpath:'{headpath}' while parsing '{includelabel=}.svx' at depth:[{len(depth)}]. ignore prefix list:'{self.ignoreprefix}'" print("\n"+message) print("\n"+message,file=sys.stderr) DataIssue.objects.create(parser='survex', message=message, url=get_offending_filename(headpath)) |