Hi, DaneW! - yes, it is bug - I made the PR https://github.com/web2py/web2py/pull/2323
On Tuesday, May 12, 2020 at 1:35:39 AM UTC+3, DaneW wrote: > > I am running web2py on PythonAnywhere under Python 2.17.12. I run a copy > of sessions2trash as a scheduled task via "python /home/web2py/web2py.py > -S myapp -M -R /home/web2py/applications/myapp/scripts/sessions2trash.py -A > -o -x 3600 -f". It has worked fine for over a year. > > I just upgraded to 20.20.4 from 2.18.4 and my scheduled session2trash run > failed with an error in web2py.py line 28 - folder = sys.argv[fi] IndexError: > list index out of range > > It seems that web2py is now trying to interpret that -f parameter as a > folder rather than the force-expiry parameter that was meant for > sessions2trash. > > I have fixed the issue by changing the code in my copy of sessions2trash > to accept either -y or --force_expiry instead of the normal -f or --force > parameters and using one of these in the command line. > > But why did this start to happen now? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/de64112e-8a66-422e-9dd1-de796d259da2%40googlegroups.com.