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

Update main.py #394

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update main.py #394

wants to merge 1 commit into from

Conversation

GeniusPlums
Copy link

No description provided.

@@ -50,15 +47,11 @@

try:
import pystray
except:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you changing which exceptions are caught? This will likely cause issues eventually as the code changes overtime, especially since this is close to the top-level of the program.

pass
except:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above.

@ghost
Copy link

ghost commented Nov 28, 2023

Also, your commit message should be more descriptive about what you are changing. From the looks of it, you are replacing os.exit with sys.exit. It appears that this may be functionally equivalent and I am guessing os.exit is a holdover from Python 2 days.

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