Skip to content

Commit

Permalink
Remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner authored Jun 1, 2022
1 parent 34a8296 commit a1ecf99
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sphinx/builders/gettext.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def add(self, msg: str, origin: Union[Element, "MsgOrigin"]) -> None:
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

Expand Down

0 comments on commit a1ecf99

Please sign in to comment.