Remove warning

This commit is contained in:
Adam Turner 2022-06-01 18:45:48 +01:00 committed by GitHub
parent 34a8296859
commit a1ecf99b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,6 @@ class Catalog:
self.metadata[msg] = []
line = origin.line
if line is None:
logger.warning(f"Node {origin!r} has no line number, using '-1'.")
line = -1
self.metadata[msg].append((origin.source, line, origin.uid)) # type: ignore