Skip to content

Conversation

@ParzivalAFK
Copy link

Many code and script files end with an empty line.

When your .js version comes across an empty line either in the script or at the end of a file like this beautiful
MonaLisa it throws a pyautogui.hotkey(UNDEFINED_KEY) into the script.

This breaks execution due to the fact the variable UNDEFINED_KEY is not defined and python will not run it.

This pull request is a fix skips over blank lines as intended.

@ParzivalAFK ParzivalAFK changed the title Fix error on empty line (js fix) Fixed empty line issues Feb 1, 2024
@ParzivalAFK
Copy link
Author

This will be my last change for today. I just added basically the same change to the python.

Though the python did handle the empty line at the end of the ducky file if there were any blank whitespace lines it threw pyautogui.hotkey) in instead of just skipping over it.

These tweaks should make your app a little more robust.

@ParzivalAFK ParzivalAFK closed this by deleting the head repository Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant