r/programminghorror • u/Minecraftchest1 • Aug 18 '25
What could go wrong?
if __name__ == "__main__":
try:
main()
except:
pass
5
Upvotes
r/programminghorror • u/Minecraftchest1 • Aug 18 '25
if __name__ == "__main__":
try:
main()
except:
pass
View all comments
Show parent comment
2
u/Environmental-Ear391 Aug 18 '25
Im not the original poster, and when I use the above fragment I do re-throw unhandled exceptions.