@@ -1264,7 +1264,6 @@ def query(self, query):
12641264 # Try to give a hint in the error message if url_to_query
12651265 # isn't supported by this bugzilla instance
12661266 if ("query_format" not in str (e ) or
1267- "RHBugzilla" in str (e .__class__ ) or
12681267 self ._check_version (5 , 0 )):
12691268 raise
12701269 raise BugzillaError ("%s\n Your bugzilla instance does not "
@@ -1719,14 +1718,15 @@ def _validate_createbug(self, *args, **kwargs):
17191718 # Previous API required users specifying keyword args that mapped
17201719 # to the XMLRPC arg names. Maintain that bad compat, but also allow
17211720 # receiving a single dictionary like query() does
1722- if kwargs and args :
1721+ if kwargs and args : # pragma: no cover
17231722 raise BugzillaError ("createbug: cannot specify positional "
17241723 "args=%s with kwargs=%s, must be one or the "
17251724 "other." % (args , kwargs ))
17261725 if args :
17271726 if len (args ) > 1 or not isinstance (args [0 ], dict ):
1728- raise BugzillaError ("createbug: positional arguments only "
1729- "accept a single dictionary." )
1727+ raise BugzillaError ( # pragma: no cover
1728+ "createbug: positional arguments only "
1729+ "accept a single dictionary." )
17301730 data = args [0 ]
17311731 else :
17321732 data = kwargs
0 commit comments