Skip to content

Commit 3688817

Browse files
committed
add comment for get_error() method
1 parent 2be8d57 commit 3688817

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

simple_query_builder/querybuilder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,10 @@ def get_sql(self, with_values: bool = True) -> str:
150150
sql = sql.replace("?", str(p), 1)
151151
return sql
152152

153-
# Logics of this method will be changed in next version
154153
def get_error(self) -> bool:
154+
"""
155+
Logics of this method will be changed in next version, use has_error() instead
156+
"""
155157
return self._error
156158

157159
def has_error(self) -> bool:

0 commit comments

Comments
 (0)