def onecmd(self, s): try: return Cmd.onecmd(self, s) except NotImplementedError as e: print(e.message) except: traceback.print_exc() return False
def onecmd(self, s): try: return Cmd.onecmd(self, s) except IndexError: print "invalid number of arguments" return False except NotImplementedError as e: print e.message except (DynamoDBResponseError, BotoClientError) as dberror: print self.pp.pformat(dberror) except: traceback.print_exc() return False