Skip to content

Commit

Permalink
[logging] Fix assertion bug (#6012)
Browse files Browse the repository at this point in the history
Fix assertion bug
  • Loading branch information
tolgacangoz authored Dec 1, 2023
1 parent 46c751e commit 5235070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def remove_handler(handler: logging.Handler) -> None:

_configure_library_root_logger()

assert handler is not None and handler not in _get_library_root_logger().handlers
assert handler is not None and handler in _get_library_root_logger().handlers
_get_library_root_logger().removeHandler(handler)


Expand Down

0 comments on commit 5235070

Please sign in to comment.