Skip to content

Conversation

@GeniusPlums
Copy link

No description provided.


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.

except:
except ImportError:
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.

@mathoudebine
Copy link
Owner

Closing PR as code has been reworked since

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.

2 participants