Don't interrupt debugger on flask reload (#721)

This commit is contained in:
Daniel Gerigk 2021-09-16 14:47:25 +02:00 committed by GitHub
parent 7cb12bed8b
commit 5dc21d67b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -397,7 +397,7 @@ class PyDevJsonCommandProcessor(object):
if not self._options.break_system_exit_zero:
ignore_system_exit_codes = [0, None]
if self._options.django_debug:
if self._options.django_debug or self._options.flask_debug:
ignore_system_exit_codes += [3]
self.api.set_ignore_system_exit_codes(py_db, ignore_system_exit_codes)