mirror of
https://github.com/im-tomu/fomu-workshop.git
synced 2024-09-20 03:10:12 +00:00
4dc82da0e9
`sys.exit` raises a `SystemExit` exception which causes a bare except to always trigger. IE the below always prints hello. ```python import sys try: sys.exit(0) except: print("Hello") ``` However, SystemExit doesn't inherit from Exception, so the following works as expected. ```python import sys try: sys.exit(0) except Exception: print("Hello") ``` |
||
---|---|---|
.. | ||
bin | ||
deps | ||
rtl | ||
lxbuildenv.py | ||
workshop_rgb.py | ||
workshop.py |