• Troy
    link
    fedilink
    arrow-up
    39
    ·
    17 hours 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
      25
      ·
      16 hours 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
      15
      ·
      15 hours 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
        6
        ·
        12 hours 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.

    • Sparky@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      8
      ·
      15 hours ago

      Customer: Can i use the bathroom?

      Bartender: Ehhhh our bathroom is not available at the moment.

      Customer: What?

      Bartender: Not. Available…

      • Troy
        link
        fedilink
        arrow-up
        6
        ·
        15 hours ago

        def bathroom(customer): return False