Browse Source

dont use i18n in exception strings as it won't get rendered correctly

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
778f54323e
  1. 4
      pyweb/mumble/models.py

4
pyweb/mumble/models.py

@ -687,9 +687,9 @@ class MumbleUser( models.Model ):
if self.id is None: if self.id is None:
# This is a new user record, so Murmur doesn't know about it yet # This is a new user record, so Murmur doesn't know about it yet
if len( ctl.getRegisteredPlayers( self.server.srvid, self.name ) ) > 0: if len( ctl.getRegisteredPlayers( self.server.srvid, self.name ) ) > 0:
raise ValueError( _( "Another player already registered that name." ) )
raise ValueError( "Another player already registered that name." )
if not self.password: if not self.password:
raise ValueError( _( "Cannot register player without a password!" ) )
raise ValueError( "Cannot register player without a password!" )
self.mumbleid = ctl.registerPlayer( self.server.srvid, self.name, email, self.password ) self.mumbleid = ctl.registerPlayer( self.server.srvid, self.name, email, self.password )

Loading…
Cancel
Save