diff options
author | James Meyer <james.meyer@operamail.com> | 2009-01-19 05:53:54 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-01-19 05:53:54 (GMT) |
commit | d53334c398abcda78c71373ce76c41ef2b766466 (patch) | |
tree | e8b74ba9825a81f02bde5f388f7da2baba04e139 /abs | |
parent | 2ec3b1a69288745b4211b4ffb0ad19a03b532154 (diff) | |
download | linhes_pkgbuild-d53334c398abcda78c71373ce76c41ef2b766466.zip linhes_pkgbuild-d53334c398abcda78c71373ce76c41ef2b766466.tar.gz linhes_pkgbuild-d53334c398abcda78c71373ce76c41ef2b766466.tar.bz2 |
make sure BEhostname is not null.
Even though it should never happen, it's best to handle the error.
Diffstat (limited to 'abs')
-rwxr-xr-x | abs/core-testing/LinHES-config/PKGBUILD | 2 | ||||
-rwxr-xr-x | abs/core-testing/LinHES-config/timezip.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD index c097873..dd78f2b 100755 --- a/abs/core-testing/LinHES-config/PKGBUILD +++ b/abs/core-testing/LinHES-config/PKGBUILD @@ -1,6 +1,6 @@ pkgname=LinHES-config pkgver=1.0 -pkgrel=216 +pkgrel=217 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev ) pkgdesc="Install and configure your system" depends=(bc libstatgrab mysql-python expect curl dnsutils parted sg3_utils nmbscan ) diff --git a/abs/core-testing/LinHES-config/timezip.py b/abs/core-testing/LinHES-config/timezip.py index 18f338f..31acd67 100755 --- a/abs/core-testing/LinHES-config/timezip.py +++ b/abs/core-testing/LinHES-config/timezip.py @@ -45,7 +45,10 @@ def selectvars(): # execute SQL statement cursor.execute("select hostname from settings where value='BackendServerIP' and data=(%s)",(masterdb)) result = cursor.fetchone() - BEhostname=result[0] + try: + BEhostname=result[0] + except TypeError: + BEhostname="" cursor.execute("select data from settings where value='HostZipcode' and hostname=(%s)",(BEhostname)) result = cursor.fetchone() |