def get_scene_exceptions(tvdb_id):
 myDB = db.DBConnection('cache.db')
 exceptions = myDB.select('SELECT DISTINCT show_name FROM scene_exceptions WHERE tvdb_id = ?', [tvdb_id])
 return [cur_exception['show_name'] for cur_exception in exceptions]

def get_scene_exceptions ( tvdb_id ) : myDB = db . DBConnection ( 'cache.db' ) exceptions = myDB . select ( 'SELECT DISTINCT show_name FROM scene_exceptions WHERE tvdb_id = ?' , [ tvdb_id ] ) return [ cur_exception [ 'show_name' ] for cur_exception in exceptions ]
given a tvdb_id .