14
0
Files
python-bugzilla/python-bugzilla-0.6.2-section.patch
2013-05-16 13:18:25 +00:00

17 lines
581 B
Diff

--- a/bugzilla/nvlbugzilla.py
+++ b/bugzilla/nvlbugzilla.py
@@ -82,7 +82,12 @@ class NovellBugzilla(Bugzilla34):
obs_url = self.__class__.obs_url
if not c.has_section(obs_url):
- return
+ if obs_url[-1:] == '/':
+ # strip the final slash and retry
+ self.__class__.obs_url = obs_url[:-1]
+ obs_url = self.__class__.obs_url
+ if not c.has_section(obs_url):
+ return
try:
user = c.get(obs_url, 'user')