Skip to content

Commit

Permalink
update prune.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kena-SL committed Jan 29, 2024
1 parent 7c500df commit cfff815
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions digital_land/phase/prune.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@ def process(self, stream):
line_number = block["line-number"]
entry_number = block["entry-number"]

if self.issues:
if not reference:
if not reference:
if self.issues:
self.issues.log_issue(
"entity",
"unknown entity - missing reference",
curie,
line_number=line_number,
)
else:
else:
if self.issues:
self.issues.log_issue(
"entity", "unknown entity", curie, line_number=line_number
)
Expand Down

0 comments on commit cfff815

Please sign in to comment.