diff options
author | Chris Lumens <clumens@redhat.com> | 2009-04-14 13:45:30 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-04-14 13:47:35 -0400 |
commit | 72a5f8f8345fadb5fc0950e40edbbe8b091b4d5f (patch) | |
tree | 23a14523886819599f8da46f4de7c35a212fcad0 /filer.py | |
parent | 2d9ee969831b8dc7eb7ea920ad0c053a4cc5652d (diff) | |
download | anaconda-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.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |