• Troy
    link
    fedilink
    arrow-up
    45
    ·
    20 days ago

    Damn. Need to wrap that whole bar in a try: except: that just silently fails. Solves all the issues and you go to another bar.

    • thenextguy@lemmy.world
      link
      fedilink
      arrow-up
      28
      ·
      20 days ago

      In my experience silently failing just leaves you standing there waiting for your beer forever, or until someone reboots the universe.

    • i_stole_ur_taco
      link
      fedilink
      arrow-up
      17
      ·
      20 days ago

      “But if it silently fails then we won’t know there’s a problem until a customer reports it and we go looking for it!”

      Yes, and that could be weeks before it becomes my problem again!

      • taladar@sh.itjust.works
        link
        fedilink
        arrow-up
        8
        ·
        20 days ago

        And weeks later, after that change has been rolled out to all the bars, the engineer now has to travel to every single one of them to fix it.

      • Troy
        link
        fedilink
        arrow-up
        6
        ·
        20 days ago

        def bathroom(customer): return False