ihptru/orabot — Issue #26: yaml parser error
Author: ihptru
Created: 2011-10-30 13:34:41+00:00
State: open

Traceback (most recent call last):
File "/usr/lib/python3.1/multiprocessing/process.py", line 233, in _bootstrap
self.run()
File "/usr/lib/python3.1/multiprocessing/process.py", line 88, in run
self._target(*self._args, **self._kwargs)
File "/root/openra/irc/privmsg_e.py", line 50, in parse_event
self.process_command(irc_user_nick, ( chan ))
File "/root/openra/orabot.py", line 436, in process_command
process_commands.evalCommand(self, command[0].lower(), user, channel)
File "/root/openra/process_commands.py", line 59, in evalCommand
command_function(self, user, channel)
File "/root/openra/commands/games.py", line 93, in games
y = yaml.load(content.replace('\t',' '))
File "/usr/local/lib/python3.1/dist-packages/yaml/__init__.py", line 72, in load
return loader.get_single_data()
File "/usr/local/lib/python3.1/dist-packages/yaml/constructor.py", line 35, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python3.1/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python3.1/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python3.1/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.1/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.1/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python3.1/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/local/lib/python3.1/dist-packages/yaml/composer.py", line 64, in compose_node
if self.check_event(AliasEvent):
File "/usr/local/lib/python3.1/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python3.1/dist-packages/yaml/parser.py", line 449, in parse_block_mapping_value
if not self.check_token(KeyToken, ValueToken, BlockEndToken):
File "/usr/local/lib/python3.1/dist-packages/yaml/scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "/usr/local/lib/python3.1/dist-packages/yaml/scanner.py", line 224, in fetch_more_tokens
return self.fetch_alias()
File "/usr/local/lib/python3.1/dist-packages/yaml/scanner.py", line 611, in fetch_alias
self.tokens.append(self.scan_anchor(AliasToken))
File "/usr/local/lib/python3.1/dist-packages/yaml/scanner.py", line 932, in scan_anchor
% ch, self.get_mark())
yaml.scanner.ScannerError: while scanning an alias
in "", line 3, column 11:
Name: *Skyport* Battle
^
expected alphabetic or numeric character, but found '*'
in "", line 3, column 19:
Name: *Skyport* Battle
^