Skip to content

Commit

Permalink
Fix style.sh error in worker/ui.py
Browse files Browse the repository at this point in the history
worker/ui.py:163:60: E721 Do not compare types, use `isinstance()`
  • Loading branch information
tijszwinkels committed Aug 12, 2023
1 parent d53c2d9 commit ea1ed77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def initialise(self):
sys.stdout = self.stdout
# Remove all loguru sinks
logger.remove()
handlers = [sink for sink in config["handlers"] if type(sink["sink"]) is str]
handlers = [sink for sink in config["handlers"] if isinstance(sink["sink"], str)]
# Re-initialise loguru
newconfig = {"handlers": handlers}
logger.configure(**newconfig)
Expand Down

0 comments on commit ea1ed77

Please sign in to comment.