Skip to content
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

Fixed empty line issues #7

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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.

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.

None yet

1 participant