Description of problem: python-nitrate should gracefully handle non-existent categories. Version-Release number of selected component (if applicable): python-nitrate-0.9-0.el6.noarch Steps to Reproduce: >>> print Category(product="RHEL Tests", category="Bad name").id Actual results: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/site-packages/nitrate/api.py", line 192, in getter self._get() File "/usr/lib/python2.6/site-packages/nitrate/api.py", line 657, in _get self.name, self.product.id) File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "/usr/lib/python2.6/site-packages/nitrate/xmlrpc.py", line 127, in request_with_cookies return self._parse_response(h.getfile(), sock) File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response return u.close() File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault 1: 'DoesNotExist: TestCaseCategory matching query does not exist.'> Expected results: NitrateError exception raised.
Fix for this pushed to git: https://github.com/psss/python-nitrate/commit/cd81ebd The example above would result in the following traceback: >>> print Category(product="RHEL Tests", category="Bad name").id Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/site-packages/nitrate/api.py", line 238, in getter self._get() File "/usr/lib/python2.6/site-packages/nitrate/api.py", line 752, in _get self.name, self.product.name)) nitrate.xmlrpc.NitrateError: Category 'Bad name' not found in 'RHEL Tests'
python-nitrate-0.9-0.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.el6
python-nitrate-0.9-0.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.fc16
python-nitrate-0.9-0.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.fc18
python-nitrate-0.9-0.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.fc17
python-nitrate-0.9-0.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-13721/python-nitrate-0.9-0.el6
python-nitrate-0.9-0.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
python-nitrate-0.9-0.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
python-nitrate-0.9-0.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
python-nitrate-0.9-0.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.