diff --git a/src/diana/sgfParser/node.py b/src/diana/sgfParser/node.py --- a/src/diana/sgfParser/node.py +++ b/src/diana/sgfParser/node.py @@ -1,4 +1,5 @@ from collections import deque +import logging as log from . import skipWhitespace, ParserWarning from .property import Property, GAME_INFO @@ -23,8 +24,7 @@ class Node: while Property.fits(s,i): i,x=Property.create(s,i) if x.name in res.properties: - # !! raise or log or ignore - raise ParserWarning('duplicate "{0}" property in a node. second value ignored'.format(x.name),s,i) + log.warning(ParserWarning('duplicate "{0}" property in a node. second value ignored'.format(x.name),s,i)) else: res.properties[x.name]=x i=skipWhitespace(s,i)