From b24dd4a613835eccabaac7421233c99ff2c35866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Govert=20Comb=C3=A9e?= Date: Sun, 19 Oct 2025 18:44:53 +0200 Subject: [PATCH] Update badgelink.py fix bug: in python sometimes putting quotes in quotes confuses python. Replaced " with ' where needed. --- tools/badgelink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/badgelink.py b/tools/badgelink.py index 78631ba..2f2d271 100755 --- a/tools/badgelink.py +++ b/tools/badgelink.py @@ -115,7 +115,7 @@ class NotFoundError(BadgeError): Raised by the badge if a request requires something that was not found. """ def __init__(self, thing: str = None): - super().__init__(StatusCode.StatusNotFound, f"{thing or "Requested file/resource"} not found") + super().__init__(StatusCode.StatusNotFound, f'{thing or "Requested file/resource"} not found') class IllegalStateError(BadgeError): """ @@ -1077,7 +1077,7 @@ def print_row(row: list[str]): elif args.action == "stat": stat = link.fs_stat(args.file) - print(f"Type: {"directory" if stat.is_dir else "file"}") + print(f'Type: {"directory" if stat.is_dir else "file"}') print(f"Size: {stat.size}") print(f"Created: {datetime.fromtimestamp(stat.ctime / 1000)}") print(f"Modified: {datetime.fromtimestamp(stat.mtime / 1000)}")