Short fix for rstrip

This commit is contained in:
2017-10-31 18:02:26 +03:00
parent f378d3fa17
commit 1dd2cbed57

View file

@ -54,10 +54,10 @@ class FleastServer(object):
@cherrypy.expose @cherrypy.expose
def fleast(self, game=None, lang=None): def fleast(self, game=None, lang=None):
game = game.rstrip()
if game is None or game == '': if game is None or game == '':
return self.index_page.format(_version_ = ver, _opt_langs_ = self.set_templ_lang('ru')) return self.index_page.format(_version_ = ver, _opt_langs_ = self.set_templ_lang('ru'))
game = game.rstrip()
cherrypy.log('Getting game:"%s" language:%s' % (game, lang)) cherrypy.log('Getting game:"%s" language:%s' % (game, lang))
data = self.client.get_streams(game, lang) data = self.client.get_streams(game, lang)