Skip to content

Commit

Permalink
fix: 🐛 is_stats_query wrong exception init (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimson-gao authored Aug 19, 2024
1 parent 67f74af commit 294e15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aliyun/log/logclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def execute_logstore_sql(self, project, logstore, from_time, to_time, sql, power
:raise: LogException
"""
if not is_stats_query(sql):
raise LogException("parameter sql invalid, please follow 'Search|Analysis' syntax, refer to "
raise LogException("InvalidParameter", "parameter sql invalid, please follow 'Search|Analysis' syntax, refer to "
"https://help.aliyun.com/document_detail/43772.html")
return self.get_log(project, logstore, from_time, to_time, topic=None,
query=sql, reverse=False, offset=0, size=100, power_sql=power_sql)
Expand Down

0 comments on commit 294e15f

Please sign in to comment.