development works in NixOS
This commit is contained in:
@@ -39,7 +39,7 @@ def main():
|
||||
|
||||
min_log_level = getattr(logging, args.loglevel.upper(), None)
|
||||
if not isinstance(min_log_level, int):
|
||||
logging.error(f"Invalid log level: {args.loglevel.upper()}.")
|
||||
print(f"Invalid log level: {args.loglevel.upper()}.") # noqa: T001
|
||||
min_log_level = logging.WARNING
|
||||
|
||||
logging.basicConfig(
|
||||
|
@@ -52,9 +52,6 @@ try:
|
||||
except Exception:
|
||||
# I really don't care what kind of exception it is, all that matters is the
|
||||
# import failed for some reason.
|
||||
logging.warning(
|
||||
"Unable to import NM from GLib. Detection of SSID will be disabled."
|
||||
)
|
||||
networkmanager_imported = False
|
||||
|
||||
REQUEST_DELAY: Optional[Tuple[float, float]] = None
|
||||
|
@@ -116,7 +116,7 @@ class ChromecastPlayer(Player):
|
||||
return
|
||||
|
||||
if self.stop_get_chromecasts is not None:
|
||||
self.stop_get_chromecasts()
|
||||
self.stop_get_chromecasts.cancel()
|
||||
|
||||
for id_, chromecast in self._chromecasts.items():
|
||||
self.player_device_change_callback(
|
||||
|
Reference in New Issue
Block a user