Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Aug 14, 2024
1 parent 93a7e4f commit 79accd8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions result_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ def __init__(self, code, data=None, error_data=None):
raise TypeError("ObdiagResult error_data is not str. Please contact the Oceanbase community. ")

def set_trace_id(self, trace_id):
if trace_id is None:
raise TypeError("ObdiagResult trace_id is None. Please contact the Oceanbase community. ")
if isinstance(trace_id, str):
self.trace_id = trace_id
else:
raise TypeError("ObdiagResult trace_id is not str. Please contact the Oceanbase community. ")
self.trace_id = "{0}".format(trace_id)

def set_command(self, command):
self.command = command
Expand Down

0 comments on commit 79accd8

Please sign in to comment.