View Single Post
Old 03-06-2017, 08:50 AM   #200
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,054
Karma: 29579868
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You should not be accessing the db in any filetype callback other than postimport and postadd. The other callbacks can be called in contexts where the db is unavailable/locked.

If you need to store some config options that you need in those callbacks use a config file, dont store them in the db.
kovidgoyal is offline   Reply With Quote