Skip to content

Commit

Permalink
recover fallback to DEFAULT VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Nov 5, 2024
1 parent 366338e commit f3b01af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyprland/plugins/pyprland.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion pyprland/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Package version."""

VERSION = "2.4.1-5"
VERSION = "2.4.1-6"

0 comments on commit f3b01af

Please sign in to comment.