Skip to content

Commit

Permalink
FIX: Implement SuppressMessage.emit()
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 5, 2023
1 parent bf93d57 commit 3272951
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hatch_vcs/build_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ def filter(self, record: logging.LogRecord) -> bool: # noqa: A003
return False
return True

def emit(self, record: logging.LogRecord) -> None:
"""This handler does nothing, but emit() may get called in rare cases."""
pass

@contextmanager
def inject(self, logger: logging.Logger):
logger.addHandler(self)
Expand Down

0 comments on commit 3272951

Please sign in to comment.