From 0daf6089b911e344185e4c6a77fc7a7d7512658d Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 26 Jan 2026 16:53:42 +0900 Subject: [PATCH] fix: raise error correctly --- .gitignore | 3 +++ CHANGELOG.md | 10 +++++++--- dzgui.sh | 8 ++++---- helpers/funcs | 2 +- helpers/pefile.py | 2 +- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 6e92f57..9c1e051 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ tags +__pycache__ +pre-commit +tests/ diff --git a/CHANGELOG.md b/CHANGELOG.md index ddadff0..8a66e5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [6.0.2-beta.3] 2026-01-26 +## Fixed +- Raise error correctly from module + ## [6.0.2-beta.2] 2026-01-18 ## Fixed - Helpers not being downloaded (uncommented boilerplate) @@ -589,7 +593,7 @@ As part of this change, version 4.0.0 introduces the ability to connect to or ad If you encounter any problems with this new release or with the migration of configs, please do not hesitate to submit a bug report. -Attention Fedora 38 users: problems with upstream GNOME packages causing crashes have been reported to GNOME development and a fix has been issued. You have the choice of compiling the zenity package +Attention Fedora 38 users: problems with upstream GNOME packages causing crashes have been reported to GNOME development and a fix has been issued. You have the choice of compiling the zenity package from source or waiting until the latest version is merged into Fedora's package manager. ### Added @@ -614,7 +618,7 @@ from source or waiting until the latest version is merged into Fedora's package - Store complete IP:Port instead of server IDs - Make Battlemetrics API key optional: this is only used for the 'Connect by ID' and 'Add server by ID' methods and is not required. If you prefer, you can simply connect/add by IP. - Prevent the application from launching in Game Mode on Steam Deck: Steam Deck's kiosk mode has problems sending keyboard input to third party applications. To prevent unintended usage, DZGUI now warns the user to launch the app in Desktop Mode if they attempt to use it from Game Mode. Adding DZGUI as a Non-Steam Game does work on desktop PCs, but is not recommended due to the way Steam handles subshells. For best results, launch DZGUI directly via the script/applications menu (PC) or via the desktop icon (Steam Deck). -- Omit null servers from list: servers that time out or send an empty response are now omitted entirely from the My Servers list, as they will not return meaningful metadata unless they are online. +- Omit null servers from list: servers that time out or send an empty response are now omitted entirely from the My Servers list, as they will not return meaningful metadata unless they are online. The My Servers list thus shows online and accessible servers ## [3.3.0] 2023-05-16 @@ -633,7 +637,7 @@ from source or waiting until the latest version is merged into Fedora's package - First-time setup: sudo escalation when checking system map count for the first time ### Fixed -- Steam Deck: non-ASCII delimiter causing setup menu to despawn on some devices +- Steam Deck: non-ASCII delimiter causing setup menu to despawn on some devices - Don't add items in My Servers multiple times to array when the list of favorites is paginated - Trigger progress dialogs sooner and in sequence to reduce appearance of visual lag - First-time setup: break out of dialogs correctly when user backs out diff --git a/dzgui.sh b/dzgui.sh index 7272b96..f02d8a9 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -2,7 +2,7 @@ set -o pipefail src_path="$(readlink -e "$0")" -version=6.0.2-beta.2 +version=6.0.2-beta.3 #CONSTANTS aid=221100 @@ -386,7 +386,7 @@ prompt_dl(){ Your branch: $branch Your version: $version Upstream version: $upstream - + Version updates introduce important bug fixes and are encouraged. Attempt to download the latest version? EOF } @@ -626,12 +626,12 @@ fetch_helpers_by_sum(){ [[ -f "$config_file" ]] && source "$config_file" declare -A sums sums=( - ["funcs"]="69e83db00cbc7674e241565c88aed83d" + ["funcs"]="9c790def4f70b6d1b0ed604a2b87b0dc" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["servers.py"]="ed442c3aecf33f777d59dcf53650d263" ["ui.py"]="d09b9d8bed3854efd51377289786c5ac" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" - ["pefile.py"]="21531f2c0d9dfa5f110cf6779f9d22c0" + ["pefile.py"]="b452974a84bff1d821872fcebf59e380" ) local author="aclist" local repo="dztui" diff --git a/helpers/funcs b/helpers/funcs index 94f1697..314b214 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -o pipefail -version="6.0.2-beta.1" +version="6.0.2-beta.3" #CONSTANTS aid=221100 diff --git a/helpers/pefile.py b/helpers/pefile.py index ab63490..9342f38 100644 --- a/helpers/pefile.py +++ b/helpers/pefile.py @@ -295,7 +295,7 @@ def get_dayz_version(file: Path) -> DayZVersion | Exception: try: version = get_version(file) except Exception as e: - return e + raise e patch = str(version.build) + str(version.revision) dz_vers = DayZVersion(version.major, version.minor, int(patch)) return dz_vers