bug: fix invalid root element comment -> bug in Bug.from_xml().
authorW. Trevor King <wking@tremily.us>
Wed, 29 Aug 2012 15:56:17 +0000 (11:56 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 30 Aug 2012 03:29:55 +0000 (23:29 -0400)
libbe/bug.py

index c91dfb869706c6af47fd3c42582bd3917e162d01..07f09e4bbb2800df87eaf349496441386172b071 100644 (file)
@@ -476,7 +476,7 @@ class Bug (settings_object.SavedSettingsObject):
             bug = ElementTree.XML(xml_string)
         if bug.tag != 'bug':
             raise utility.InvalidXML( \
-                'bug', bug, 'root element must be <comment>')
+                'bug', bug, 'root element must be <bug>')
         tags=['uuid','short-name','severity','status','assigned',
               'reporter', 'creator','created','summary','extra-string']
         self.explicit_attrs = []