diff --git a/pyprland/plugins/pyprland.py b/pyprland/plugins/pyprland.py index c92c5e2..78191f1 100644 --- a/pyprland/plugins/pyprland.py +++ b/pyprland/plugins/pyprland.py @@ -34,7 +34,7 @@ async def init(self) -> None: if len(version_str) < len(_tag): auto_increment = True else: - version_str = version_info["version"] + version_str = version_info.get("version") if version_str: try: @@ -45,7 +45,7 @@ async def init(self) -> None: version_str = "" if not version_str: - self.log.error("Fail to parse version information: %s", version_info) + self.log.error("Fail to parse version information: %s - using default", version_info) state.hyprland_version = DEFAULT_VERSION state.active_workspace = (await self.hyprctl_json("activeworkspace"))["name"] diff --git a/pyprland/version.py b/pyprland/version.py index 45ed4c3..000be54 100644 --- a/pyprland/version.py +++ b/pyprland/version.py @@ -1,3 +1,3 @@ """Package version.""" -VERSION = "2.4.1-5" +VERSION = "2.4.1-6"