Skip to content

Commit

Permalink
Small fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pmdartus committed Dec 20, 2014
1 parent 4b9d7b6 commit f6a5e00
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libs/client/commandparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def _cube_start_with(self, text):
def do_list(self, _):
cubes = self.connector.list_cubes()
self.cache = cubes
print('{0} cubes'.format(len(cubes)))
pattern = '- {0} Size: {1} Loading: {2}'
for cube in cubes:
print(pattern.format(cube['name'], cube['count'], cube['is_loading']))
Expand Down Expand Up @@ -68,7 +67,11 @@ def do_load(self, args):
print("Loading: {0}".format(ret["name"]))

def do_serialize(self, args):
self.connector.serialize(args)
try:
self.connector.serialize(args)
except Exception, e:
print('[Error] ' + str(e))


def complete_serialize(self, text, line, start_index, end_index):
return self._cube_start_with(text)
Expand Down

0 comments on commit f6a5e00

Please sign in to comment.