development works in NixOS

This commit is contained in:
Sumner Evans
2020-10-13 21:09:13 -06:00
parent aa20eaada7
commit abf3720745
8 changed files with 153 additions and 126 deletions

View File

@@ -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(

View File

@@ -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

View File

@@ -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(