diff --git a/src/common/logger.py b/src/common/logger.py index de288f5b5..8fb2cf714 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -149,7 +149,8 @@ class Logger: def attach_cache_database(self): try: - self.cur.execute("ATTACH DATABASE '%s' AS cache" % CACHE_DB_PATH) + self.cur.execute("ATTACH DATABASE '%s' AS cache" % \ + CACHE_DB_PATH.replace("'", "''")) except sqlite.Error as e: log.debug("Failed to attach cache database: %s" % str(e))