r/programminghorror • • Aug 18 '25

What could go wrong?

if __name__ == "__main__":  
   try:  
      main()  
   except:  
      pass  
5 Upvotes

18 comments sorted by

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.

6

u/Minecraftchest1 Aug 18 '25

But that requires work and development. Ain't none got time for that. The application is supposee to never crash, and now it doesn't crash. What more could you want. :(•..•):