def _addAlbum(self, **kwargs): if 'id' not in kwargs: self.data = 'Missing parameter: id' return else: self.id = kwargs['id'] try: importer.addReleaseById(self.id) except Exception, e: self.data = e
def _addAlbum(self, **kwargs): if "id" not in kwargs: self.data = "Missing parameter: id" return else: self.id = kwargs["id"] try: importer.addReleaseById(self.id) except Exception, e: self.data = e