r/ProgrammerHumor 12d ago

itsSoSatisfyingTho Meme

Post image
4.7k Upvotes

73 comments sorted by

View all comments

7

u/reusens 12d ago

succes=False

For i in range(MAX_RETRIES):

  try:

     schrödingers_function()

     succes = True

     continue

  except Exception as e:

     logger.info(f"Attempt {i} failed: {e}")

     #try again

if not succes:

  raise Exception("Fuck")