File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sentry_sdk/integrations/django Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -697,7 +697,7 @@ def _set_db_data(span, cursor_or_db):
697
697
is_psycopg2 = (
698
698
hasattr (cursor_or_db , "connection" )
699
699
and hasattr (cursor_or_db .connection , "get_dsn_parameters" )
700
- and inspect .isfunction (cursor_or_db .connection .get_dsn_parameters )
700
+ and inspect .isroutine (cursor_or_db .connection .get_dsn_parameters )
701
701
)
702
702
if is_psycopg2 :
703
703
connection_params = cursor_or_db .connection .get_dsn_parameters ()
@@ -706,7 +706,7 @@ def _set_db_data(span, cursor_or_db):
706
706
hasattr (cursor_or_db , "connection" )
707
707
and hasattr (cursor_or_db .connection , "info" )
708
708
and hasattr (cursor_or_db .connection .info , "get_parameters" )
709
- and inspect .isfunction (cursor_or_db .connection .info .get_parameters )
709
+ and inspect .isroutine (cursor_or_db .connection .info .get_parameters )
710
710
)
711
711
if is_psycopg3 :
712
712
connection_params = cursor_or_db .connection .info .get_parameters ()
You can’t perform that action at this time.
0 commit comments