Fix the HA test error for 1.10-onos

Change-Id: Iad582d7713d78810702d074d62675b49e008de89
diff --git a/TestON/tests/HA/dependencies/HA.py b/TestON/tests/HA/dependencies/HA.py
index d44f636..d98088d 100644
--- a/TestON/tests/HA/dependencies/HA.py
+++ b/TestON/tests/HA/dependencies/HA.py
@@ -3183,8 +3183,11 @@
                             try:
                                 mac = host.get( 'mac' )
                                 assert mac, "mac field could not be found for this host object"
-
-                                location = host.get( 'locations' )[ 0 ]
+                                print host
+                                if 'locations' in host:
+                                    location = host.get( 'locations' )[ 0 ]
+                                elif 'location' in host:
+                                    location = host.get( 'location' )
                                 assert location, "location field could not be found for this host object"
 
                                 # Trim the protocol identifier off deviceId
@@ -3209,7 +3212,7 @@
                                         hostAttachment = False
                                 else:
                                     hostAttachment = False
-                            except AssertionError:
+                            except ( AssertionError, TypeError ):
                                 main.log.exception( "Json object not as expected" )
                                 main.log.error( repr( host ) )
                                 hostAttachment = False