summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/client.py
diff options
context:
space:
mode:
authorÉtienne BERSAC <bersace03@gmail.com>2016-06-27 18:20:40 +0200
committerTim Graham <timograham@gmail.com>2016-06-27 12:20:40 -0400
commit03f6d272abe12a0d5c915253efb5de99583d2413 (patch)
tree6a743b7534319f996193dab42c2e775832493403 /django/db/backends/postgresql/client.py
parentd47f6d75ef67dbd18abf2bb927753f739a9c117d (diff)
downloaddjango-03f6d272abe12a0d5c915253efb5de99583d2413.tar.gz
Fixed #26751 -- Made dbshell exit with the shell's error code.
Diffstat (limited to 'django/db/backends/postgresql/client.py')
-rw-r--r--django/db/backends/postgresql/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/client.py b/django/db/backends/postgresql/client.py
index 1b4b884c60..dd3d40c064 100644
--- a/django/db/backends/postgresql/client.py
+++ b/django/db/backends/postgresql/client.py
@@ -55,7 +55,7 @@ class DatabaseClient(BaseDatabaseClient):
# If the current locale can't encode the data, we let
# the user input the password manually.
pass
- subprocess.call(args)
+ subprocess.check_call(args)
finally:
if temp_pgpass:
temp_pgpass.close()