~viashimo/mnemosyne-proj/mnemosyne-proj

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/libmnemosyne/databases/SQLite.py

  • Committer: Kienan
  • Date: 2016-11-24 01:37:38 UTC
  • Revision ID: kienan@hereticus-20161124013738-60h8k7f8tz7h03fq
Fix crash on startup with new data directory in headless (sync-server) mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
340
340
            self.unload()
341
341
        self._path = expand_path(path, self.config().data_dir)
342
342
        if not os.path.exists(self._path):
343
 
            return new(path)
 
343
            return self.new(path)
344
344
        # Check database version.
345
345
        try:
346
346
            sql_res = self.con.execute("""select value from global_variables