summaryrefslogtreecommitdiffstats
path: root/filer.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-04-14 13:45:30 -0400
committerChris Lumens <clumens@redhat.com>2009-04-14 13:47:35 -0400
commit72a5f8f8345fadb5fc0950e40edbbe8b091b4d5f (patch)
tree23a14523886819599f8da46f4de7c35a212fcad0 /filer.py
parent2d9ee969831b8dc7eb7ea920ad0c053a4cc5652d (diff)
downloadanaconda-72a5f8f8345fadb5fc0950e40edbbe8b091b4d5f.tar.gz
anaconda-72a5f8f8345fadb5fc0950e40edbbe8b091b4d5f.tar.xz
anaconda-72a5f8f8345fadb5fc0950e40edbbe8b091b4d5f.zip
If we can't communicate while logging in to bugzilla, error (#492470).
Diffstat (limited to 'filer.py')
-rw-r--r--filer.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/filer.py b/filer.py
index 55cf95bb1..d693162c5 100644
--- a/filer.py
+++ b/filer.py
@@ -304,9 +304,12 @@ class BugzillaFiler(AbstractFiler):
def login(self, username, password):
import bugzilla
- self._bz = bugzilla.Bugzilla(url=self.bugUrl)
+ try:
+ self._bz = bugzilla.Bugzilla(url=self.bugUrl)
+ retval = self._bz.login(username, password)
+ except socket.error, e:
+ raise CommunicationError(str(e))
- retval = self._bz.login(username, password)
if not retval:
raise LoginError(self.bugUrl, username)