I do believe that the problem lies in an assembly that's being used. I'm running the script from IronPython Console, so I guess I'm not doing poor exception handling.
import timer import fl def main(): mst = fl.FireLaser() def poll(src, args): try: mst.ReadBrokenFiber() mst.ReadZoneTemperature(3) except Sockets.SocketException: print "Poll operation failed" try: mst.reconnect() except Sockets.SocketException: print "Reconnect operation failed" #next iteration will do pass tmr = timer.MyTimer(5000,poll) tmr.start() mst.connect() if __name__=="__main__": print "Module loaded from CLI" main() On Fri, Apr 30, 2010 at 11:20 AM, Lukas Cenovsky <cenov...@bakalari.cz>wrote: > Run the program from command line and you should see the exception there. > > -- > -- Lukáš >
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com