grantjenks/python-diskcache

Error during reset

csm10495 opened this issue · 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