Hello,

[not urgent]

Commiting an invalid DOAP file now gives:

Traceback (most recent call last):
  File "/home/admin/gitadmin-bin/extract-doap-shortdesc", line 14, in ?
    nodes = semi_rdf.read_rdf(sys.stdin)
  File "/home/admin/gitadmin-bin/semi_rdf.py", line 147, in read_rdf
    parser.parse(f)
  File "/usr/lib64/python2.4/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib64/python2.4/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib64/python2.4/xml/sax/expatreader.py", line 211, in feed
    self._err_handler.fatalError(exc)
  File "/usr/lib64/python2.4/xml/sax/handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseExceptionTo 
ssh://[email protected]/git/library-web
   093e49f..c144654  master -> master
: <stdin>:16:95: not well-formed (invalid token)

Perhaps the exception could be caught and an explicit message
displayed instead ? Or would it be desirable to forbid pushes
of invalid DOAP files ?


        Frederic
_______________________________________________
gnome-infrastructure mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-infrastructure

Reply via email to