We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa06bcb commit b9df7f8Copy full SHA for b9df7f8
sentry_sdk/tracing.py
@@ -7,7 +7,7 @@
7
import sentry_sdk
8
9
from sentry_sdk.serializer import partial_serialize
10
-from sentry_sdk.utils import capture_internal_exceptions, logger
+from sentry_sdk.utils import capture_internal_exceptions, logger, to_string
11
from sentry_sdk._compat import PY2
12
from sentry_sdk._types import MYPY
13
@@ -404,7 +404,7 @@ def _format_sql(cursor, sql):
404
except Exception:
405
real_sql = None
406
407
- return real_sql or str(sql)
+ return real_sql or to_string(sql)
408
409
410
@contextlib.contextmanager
0 commit comments