cubicweb/cwctl.py
changeset 12317 5166a1a7e4f4
parent 12265 3f57a23e9954
child 12508 a8c1ea390400
equal deleted inserted replaced
12316:b80f186b9dbe 12317:5166a1a7e4f4
   146         sys.exit(status)
   146         sys.exit(status)
   147 
   147 
   148     def run_arg(self, appid):
   148     def run_arg(self, appid):
   149         cmdmeth = getattr(self, '%s_instance' % self.name)
   149         cmdmeth = getattr(self, '%s_instance' % self.name)
   150         try:
   150         try:
   151             status = cmdmeth(appid)
   151             status = cmdmeth(appid) or 0
   152         except (ExecutionError, ConfigurationError) as ex:
   152         except (ExecutionError, ConfigurationError) as ex:
   153             sys.stderr.write('instance %s not %s: %s\n' % (
   153             sys.stderr.write('instance %s not %s: %s\n' % (
   154                     appid, self.actionverb, ex))
   154                     appid, self.actionverb, ex))
   155             status = 4
   155             status = 4
   156         except Exception as ex:
   156         except Exception as ex: