Ticket #4304: exit_on_bug

File exit_on_bug, 508 bytes (added by MarioGonzalez <gonzalemario @…>, 17 years ago)
Line 
1Index: management.py
2===================================================================
3--- management.py (revisión: 5724)
4+++ management.py (copia de trabajo)
5@@ -1254,7 +1254,8 @@
6 except (AttributeError, KeyError):
7 error_text = str(e)
8 sys.stderr.write(style.ERROR("Error: %s" % error_text) + '\n')
9- sys.exit(1)
10+ from os import _exit
11+ _exit(1)
12 except KeyboardInterrupt:
13 sys.exit(0)
14 if use_reloader:
Back to Top