Mercurial > libervia-backend
diff src/plugins/plugin_misc_radiocol.py @ 941:c6d8fc63b1db
core, plugins: host.getClient now raise an exception instead of returning None when no profile is found, plugins have been adapted consequently and a bit cleaned
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 28 Mar 2014 18:07:02 +0100 |
parents | c3fdf187a73a |
children | 301b342c697a |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_radiocol.py Fri Mar 28 18:06:51 2014 +0100 +++ b/src/plugins/plugin_misc_radiocol.py Fri Mar 28 18:07:02 2014 +0100 @@ -99,9 +99,6 @@ # be streamed to the backend using XMPP file copy # Here we cheat because we know we are on the same host, and we don't # check data. Referee will have to parse the song himself to check it - client = self.host.getClient(profile) - if not client: - raise exceptions.NotConnectedProfileError(_("Can't access profile's data")) try: if song_path.lower().endswith('.mp3'): actual_song = MP3(song_path)