equal
deleted
inserted
replaced
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: |