Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 586378 Details for
Bug 824485
XMLRPC: Python driver uses string exceptions
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Use NitrateError class for raising exceptions instead of plain str
0001-Use-NitrateError-class-for-raising-exceptions-instea.patch (text/plain), 2.03 KB, created by
Petr Šplíchal
on 2012-05-23 15:08:31 UTC
(
hide
)
Description:
Use NitrateError class for raising exceptions instead of plain str
Filename:
MIME Type:
Creator:
Petr Šplíchal
Created:
2012-05-23 15:08:31 UTC
Size:
2.03 KB
patch
obsolete
>From 08093873e4eb4c5df88cc62d7faff76119faa269 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Petr=20=C5=A0pl=C3=ADchal?= <psplicha@redhat.com> >Date: Wed, 23 May 2012 17:06:11 +0200 >Subject: [PATCH] Use NitrateError class for raising exceptions instead of plain str > >--- > trunk/nitrate/docs/driver/python/nitrate.py | 9 +++++---- > 1 files changed, 5 insertions(+), 4 deletions(-) > >diff --git a/trunk/nitrate/docs/driver/python/nitrate.py b/trunk/nitrate/docs/driver/python/nitrate.py >index 24f22c9..58a6c26 100644 >--- a/trunk/nitrate/docs/driver/python/nitrate.py >+++ b/trunk/nitrate/docs/driver/python/nitrate.py >@@ -294,7 +294,7 @@ class NitrateXmlrpc(object): > elif url.startswith('http://'): > self._transport = CookieTransport() > else: >- raise "Unrecognized URL scheme" >+ raise NitrateError("Unrecognized URL scheme") > > self._transport.cookiejar = CookieJar() > # print "COOKIES:", self._transport.cookiejar._cookies >@@ -401,7 +401,7 @@ class NitrateXmlrpc(object): > If args is empty, then we raise an error. > """ > if not args: >- raise NitrateError, "At least one variable must be set." >+ raise NitrateError("At least one variable must be set.") > return "{%s}" % ''.join(args) > > _options_ne_dict = _options_non_empty_dict >@@ -492,9 +492,10 @@ class NitrateKerbXmlrpc(NitrateXmlrpc): > if url.startswith('https://'): > self._transport = KerbTransport() > elif url.startswith('http://'): >- raise "Apache module mod_ssl is required by mod_auth_kerb for encrypt the communication." >+ raise NitrateError("Encrypted https communication required for " >+ "Kerberos authentication.\nURL provided: {0}".format(url)) > else: >- raise "Unrecognized URL scheme" >+ raise NitrateError("Unrecognized URL scheme: {0}".format(url)) > > self._transport.cookiejar = CookieJar() > # print "COOKIES:", self._transport.cookiejar._cookies >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 824485
: 586378