#NEWLINE# def _connect_or_create_db( self , cardinal ) : #NEWLINE# #INDENT# self . conn = None #NEWLINE# try : #NEWLINE# #INDENT# self . conn = sqlite3 . connect ( os . path . join ( c . storage_path , 'database' , ( 'lastfm-%s.db' % cardinal . network ) ) ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# self . logger . exception ( 'Unable to access local Last.fm database' ) #NEWLINE# return #NEWLINE# #UNINDENT# c = self . conn . cursor ( ) #NEWLINE# c . execute ( 'CREATE TABLE IF NOT EXISTS users (   nick text collate nocase,   vhost text,   username text)' ) #NEWLINE# self . conn . commit ( )