summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJan Pieter Waagmeester <jieter@jieter.nl>2023-05-03 14:24:45 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-05-04 06:07:12 +0200
commitf5b39b77e38b7585861df9314aba4ce93b018c4c (patch)
tree69cfa98dbbfcc98a2526d76106954f544c41369c /django
parent49830025c992fbc8d8f213e7c16dba1391c6adf2 (diff)
downloaddjango-f5b39b77e38b7585861df9314aba4ce93b018c4c.tar.gz
Fixed #34535 -- Fixed SQLite dbshell crash on pathlib.Path when handling CommandError.
Regression in 5b884d45ac5b76234eca614d90c83b347294c332.
Diffstat (limited to 'django')
-rw-r--r--django/core/management/commands/dbshell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/dbshell.py b/django/core/management/commands/dbshell.py
index 30d2765afb..bdb130594f 100644
--- a/django/core/management/commands/dbshell.py
+++ b/django/core/management/commands/dbshell.py
@@ -41,7 +41,7 @@ class Command(BaseCommand):
raise CommandError(
'"%s" returned non-zero exit status %s.'
% (
- " ".join(e.cmd),
+ " ".join(map(str, e.cmd)),
e.returncode,
),
returncode=e.returncode,