On Friday, 12 February 2021 14:44:14 GMT Ralph Corderoy wrote:
> There's also sys.exit().  See
> https://docs.python.org/3/library/exceptions.html#SystemExit

Ralph,

Thanks for all the foregoing.  The module sys.exit() looks useful, but I keep 
getting:

Job "check_webserver_commands (trigger: interval[0:00:01], paused)" raised an 
exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/apscheduler/executors/base.py", 
line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
  File "minstermusic.py", line 444, in check_webserver_commands
    sys.exit()
SystemExit

but it doesn't actually exit the program and I have to Ctrl-C to get out 
fully, which means it doesn't save the trace.

Any ideas?

-- 



                Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-03-02 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to