🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    I need a try and except block in UI Flow 2.

    UiFlow 2.0
    2
    3
    1.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      digiponta
      last edited by

      Hi,

      I need a try and except block in UI Flow 2.

      ------- example -------
      try:
      print(x)
      except:
      print("An exception occurred")

      1 Reply Last reply Reply Quote 0
      • J
        jamesarm97
        last edited by

        This exists in the latest alpha version of UIFLOW2 I am using. Just had to use it because I was getting an exception reading from and I2C device that didnt exist and the program would stop,

        D 1 Reply Last reply Reply Quote 2
        • D
          digiponta @jamesarm97
          last edited by

          @jamesarm97 Thank you. I had used the try block.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post