Skip to content

Commit

Permalink
code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Aug 20, 2024
1 parent ef80ab3 commit 4521c72
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions diag_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,12 @@ def args_to_str(args):
ROOT_IO.print('Trace ID: %s' % self.trace_id)
ROOT_IO.print('If you want to view detailed obdiag logs, please run: {0} display-trace {1}'.format(obdiag_bin, self.trace_id))
telemetry.put_data()
if ret.get_code() == ObdiagResult.SUCCESS_CODE:
return True
if ROOT_IO.silent:
if ret.get_code() == ObdiagResult.SUCCESS_CODE:
return True
else:
return False
return True
except NotImplementedError:
ROOT_IO.exception('command \'%s\' is not implemented' % self.prev_cmd)
except SystemExit:
Expand Down

0 comments on commit 4521c72

Please sign in to comment.