From db02b1c69850f721c2abf153b1171573cd077d81 Mon Sep 17 00:00:00 2001 From: Ainur Gimadeev Date: Mon, 25 Apr 2022 14:09:45 +0300 Subject: [PATCH] Remove str convertation --- hstest/stage/sql_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hstest/stage/sql_test.py b/hstest/stage/sql_test.py index 03d324e8..dbd5b43c 100644 --- a/hstest/stage/sql_test.py +++ b/hstest/stage/sql_test.py @@ -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()