summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/timezip.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/LinHES-config/timezip.py')
-rwxr-xr-xabs/core-testing/LinHES-config/timezip.py5
1 files changed, 4 insertions, 1 deletions
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()