Changeset 41

Show
Ignore:
Timestamp:
07/22/07 21:55:47 (5 years ago)
Author:
dlefevre
Message:

Minor fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mymrc/trunk/mymrc/src/db/audioqueries.py

    r30 r41  
    125125        ON audio_artist.name = ? 
    126126WHERE mutex.i = 1 AND audio_artist.name IS NULL;""" 
    127         return DBDriver().execute(query, (aArtist.title(), aArtist.title())) 
     127        if aArtist: 
     128            return DBDriver().execute(query, (aArtist.title(), aArtist.title())) 
    128129     
    129130     
     
    137138        ON audio_album.title = ? 
    138139WHERE mutex.i = 1 AND audio_album.title IS NULL;""" 
    139         return DBDriver().execute(query, (aAlbum.title(), aAlbum.title())) 
     140        if aAlbum: 
     141            return DBDriver().execute(query, (aAlbum.title(), aAlbum.title())) 
    140142    
    141143