Commits

Adam Lindsay committed 9b863c9

Clients: namespace bug during errors

  • Participants
  • Parent commits 6ce5497

Comments (0)

Files changed (2)

 
 from locator.ttypes import Location
 from storeserver import remote_call, DEFAULTPORT
-from location import ping_until_found, loc2str
+from location import ping_until_found, loc2str, NodeNotFound
 
 usage = '''
   python storeget.py <key>
         sys.exit()
     try:
         loc = ping_until_found(Location('localhost', DEFAULTPORT))
-    except location.NodeNotFound:
+    except NodeNotFound:
         print 'No host autodiscovered.'
         sys.exit()
     value = remote_call(loc, 'get', key)
 
 from locator.ttypes import Location
 from storeserver import remote_call, DEFAULTPORT
-from location import ping_until_found, loc2str
+from location import ping_until_found, loc2str, NodeNotFound
 
 usage = '''
   python storeput.py <key> <value>
         sys.exit()
     try:
         loc = ping_until_found(Location('localhost', DEFAULTPORT))
-    except location.NodeNotFound:
+    except NodeNotFound:
         print 'No host autodiscovered.'
         sys.exit()
     remote_call(loc, 'put', key, value)