- options = self.game.get_string_options(string_option_type)
- if options is None:
- raise ArgError('Unknown string option type.')
+ if not string_option_type in self.string_options.keys():
+ raise ArgError('Unknown string option type: %s' % string_option_type)
+ options = self.string_options[string_option_type]