Update linting due to new Ruff rules
This commit is contained in:
@@ -183,7 +183,7 @@ class NWStatus:
|
||||
icon = NWStatus.createIcon(self._height, color, shape)
|
||||
return StatusEntry(simplified(data[2]), color, theme, shape, icon)
|
||||
except Exception:
|
||||
logger.error("Could not parse entry %s", str(data))
|
||||
logger.error("Could not parse entry %s", data)
|
||||
return None
|
||||
|
||||
def refreshIcons(self) -> None:
|
||||
|
||||
@@ -89,7 +89,7 @@ class NWTree:
|
||||
"""
|
||||
if tHandle and tHandle in self._items:
|
||||
return self._items[tHandle]
|
||||
logger.error("No tree item with handle '%s'", str(tHandle))
|
||||
logger.error("No tree item with handle '%s'", tHandle)
|
||||
return None
|
||||
|
||||
def __contains__(self, tHandle: str) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user