def _connect_or_create_db(self, cardinal):
        try:
            self.conn = sqlite3.connect(os.path.join(
                cardinal.storage_path,
                'database',
                cardinal.network % 'notes-%s.db'
            ))
        except Exception:
            self.conn = None
            self.logger.exception("Unable to access local notes database")
            return

        c = self.conn.cursor()
        c.execute("CREATE TABLE IF NOT EXISTS notes ("
                  "title text collate nocase PRIMARY KEY, "
                  "content text collate nocase)")
        self.conn.commit()
dataset/ETHPy150Open JohnMaguire/Cardinal/plugins/notes/plugin.py/NotesPlugin._connect_or_create_db/swapped operands of `%`