HarshCasper / Rotten-Scripts

Scripts that will make you go WOW!
MIT License
1.47k stars 491 forks source link

replaced exit() with sys.exit() #1252

Closed aayu-s closed 2 years ago

aayu-s commented 2 years ago

Description

The exit or quit functions don't exist at the top-level if python is started with the -S flag, and will raise an error. Use sys.exit() instead. exit() is used and will fail if the python is run with the -S option, where as sys.exit() is guaranteed to work, regardless of the interpreter options.

Fixes #1253

Type of change

Please delete options that are not relevant.

ghost commented 2 years ago

Changes to your CodeSee Architecture Map:

View a CodeSee Map of these changes

Legend

CodeSee Map Legend

github-actions[bot] commented 2 years ago

@aayu-s Hurray, your PR got merged 🥳. Thanks a bunch. Feel free to take another Issue.💖