Skip to content

Fix B028 #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2023
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions src/error_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def split_image_directory_empty():

def image_type(image: str):
set_text_message(
f'"{image}" is not a valid image file, does not exist, '
f"{image!r} is not a valid image file, does not exist, "
+ "or the full image file path contains a special character.",
)

Expand Down Expand Up @@ -89,11 +89,11 @@ def alignment_not_matched():


def no_keyword_image(keyword: str):
set_text_message(f'Your split image folder does not contain an image with the keyword "{keyword}".')
set_text_message(f"Your split image folder does not contain an image with the keyword {keyword!r}.")


def multiple_keyword_images(keyword: str):
set_text_message(f'Only one image with the keyword "{keyword}" is allowed.')
set_text_message(f"Only one image with the keyword {keyword!r} is allowed.")


def reset_hotkey():
Expand All @@ -111,7 +111,7 @@ def invalid_settings():


def invalid_hotkey(hotkey_name: str):
set_text_message(f'Invalid hotkey "{hotkey_name}"')
set_text_message(f"Invalid hotkey {hotkey_name!r}")


def no_settings_file_on_open():
Expand Down
2 changes: 1 addition & 1 deletion src/hotkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def send_command(autosplit: AutoSplit, command: Commands):
_send_hotkey(autosplit.settings_dict["undo_split_hotkey"])

else:
raise KeyError(f"'{command}' is not a valid LiveSplit.AutoSplitIntegration command")
raise KeyError(f"{command!r} is not a valid LiveSplit.AutoSplitIntegration command")


def _unhook(hotkey_callback: Callable[[], None] | None):
Expand Down
2 changes: 1 addition & 1 deletion src/user_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def __load_settings_from_file(autosplit: AutoSplit, load_settings_file_path: str
if not autosplit.capture_method.check_selected_region_exists(autosplit):
autosplit.live_image.setText(
"Reload settings after opening"
+ f'\n"{autosplit.settings_dict["captured_window_title"]}"'
+ f"\n{autosplit.settings_dict['captured_window_title']!r}"
+ "\nto automatically load Capture Region",
)

Expand Down