Jenkins Job - DatabaseError: file is encrypted or is not a database : <p>When running this code for connecting to a db through cmd - locally and on the actual server it works fine. But I have set it up on Jenkins and receive the error: </p>

<pre><code>DatabaseError: file is encrypted or is not a database
</code></pre>

<p>It seems to be happening on this line:</p>

<pre><code>  self.cursor.execute(*args)
</code></pre>

<p>The database class is:</p>

<pre><code>class DatabaseManager(object):
    def __init__(self, db):
        self.conn = sqlite3.connect(db)
        self.cursor = self.conn.cursor()

    def query(self, *args):
        self.cursor.execute(*args)
        self.conn.commit()
        return self.cursor

    def __del__(self):
        self.conn.close()
</code></pre>
