Coder Social home page Coder Social logo

Comments (1)

OpenSourceIronman avatar OpenSourceIronman commented on July 21, 2024

pi@raspberrypi:~/Tapomatic/v2020.0 $ python3 Actuator.py
DEBUG STATEMENTS ARE ON INSIDE Actuator.py CLASS
Actuator.py MESSAGE: Try fail in main of Actuator.py

After changing the code to the following to get the output at bottom of this comment.

  1. So what line is causing try fail?
  2. Is "except NameError:" too vague and catching ALL exceptions?

283 try:
284 #Actuator.UnitTest()
285 #relay = OutputDevice(8) #BCM-8
286 #relay.on()
287 #time.sleep(20) # seconds or milliseconds?
288 #relay.off()
289 print("THIS CANT FAIL?")
290 v
291 currentProgramFilename = os.path.basename(file)
292 NameDebugObject = Debug(True, currentProgramFilename)
293 NameDebugObject.Dprint("Try fail in main of " + str(currentProgramFilename))
294
295 print("END ACTUATOR.PY MAIN")

END ACTUATOR.PY MAIN
pi@raspberrypi:~/Tapomatic/v2020.0 $ python3 Actuator.py
THIS CANT FAIL?

from tapomatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.