﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
37109	Suppress KeyboardInterrupt traceback in dbshell	Vikash G	Vikash G	"When running `python manage.py dbshell` and exiting with Ctrl+C,
Django prints a full traceback originating from `subprocess.run()`.

This is reproducible with the SQLite backend on Python 3.13.

**Example:**
{{{

$ python manage.py dbshell

SQLite version 3.51.0
sqlite> [pressed Ctrl + C]

Traceback (most recent call last):
  ...
  File "".../django/db/backends/base/client.py"", line 31, in runshell
    subprocess.run(args, env=env, check=True)
  ...
KeyboardInterrupt

}}}

**Expected behavior:**

`dbshell` should terminate cleanly without displaying a traceback
when interrupted with Ctrl+C, since this is normal interactive shell
behavior.

The issue appears to come from `subprocess.run()` propagating
KeyboardInterrupt during interactive shell execution.

A possible fix is to suppress KeyboardInterrupt around the
`subprocess.run()` call in:

django/db/backends/base/client.py"	Cleanup/optimization	assigned	Core (Management commands)	6.0	Normal			Vikash G	Unreviewed	1	0	0	0	1	0
