python-diskcache icon indicating copy to clipboard operation
python-diskcache copied to clipboard

Error during reset

Open csm10495 opened this issue 1 year ago • 0 comments

I got this error when setting up my diskcache:

  File "C:\Users\csm10495\AppData\Local\Jenkins\.jenkins\workspace\Update Lump Status\infra\Lib\site-packages\diskcache\core.py", line 2441, in reset
    sql('PRAGMA %s = %s' % (pragma, value)).fetchall()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: near "-": syntax error

It has these values

      pragma = 'auto_vacuum'
      value = 'least-recently-stored'

I'm guessing we're missing some escaping for the value with -'s

csm10495 avatar May 06 '24 22:05 csm10495