Skip to content

Commit

Permalink
Remove str convertation
Browse files Browse the repository at this point in the history
  • Loading branch information
inuur committed Apr 25, 2022
1 parent 4f660c7 commit db02b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hstest/stage/sql_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def execute(self, query_name: str):
try:
return cursor.execute(self.queries[query_name])
except Exception as ex:
raise WrongAnswer(f"Error while running '{query_name}': \n\n{str(ex)}")
raise WrongAnswer(f"Error while running '{query_name}': \n\n{ex}")

def execute_and_fetch_all(self, query_name: str):
return self.execute(query_name).fetchall()

0 comments on commit db02b1c

Please sign in to comment.