Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/badgelink.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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)}")
Expand Down