Fix some failures with badly set 'current' field.

This commit is contained in:
Laurent Bachelier 2012-02-02 15:25:13 +01:00
commit 8d15911d67
2 changed files with 19 additions and 14 deletions

View file

@ -118,7 +118,7 @@ class Radioob(ReplApplication):
print >>sys.stderr, 'This command takes an argument: %s' % self.get_command_help('info', short=True)
return 2
radio = self.get_object(_id, 'get_radio')
radio = self.get_object(_id, 'get_radio', ['streams', 'current'])
if not radio:
print >>sys.stderr, 'Radio not found:', _id
return 3