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):
697697 is_psycopg2 = (
698698 hasattr (cursor_or_db , "connection" )
699699 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 )
701701 )
702702 if is_psycopg2 :
703703 connection_params = cursor_or_db .connection .get_dsn_parameters ()
@@ -706,7 +706,7 @@ def _set_db_data(span, cursor_or_db):
706706 hasattr (cursor_or_db , "connection" )
707707 and hasattr (cursor_or_db .connection , "info" )
708708 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 )
710710 )
711711 if is_psycopg3 :
712712 connection_params = cursor_or_db .connection .info .get_parameters ()
You can’t perform that action at this time.
0 commit comments