summaryrefslogtreecommitdiffstatshomepage
path: root/py/objexcept.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-24 23:32:19 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-24 23:32:19 +0100
commit7a4ddd24281a7e21eeaa697644418015cf4dd650 (patch)
tree6e1e87da8bee4f94539b98625b4deb6fd9ececd4 /py/objexcept.c
parentee3fd46f1383e984c968c4a82d634d7b0cea49b8 (diff)
downloadmicropython-7a4ddd24281a7e21eeaa697644418015cf4dd650.tar.gz
micropython-7a4ddd24281a7e21eeaa697644418015cf4dd650.zip
Add SystemExit exception and use it in unix/ and stmhal/ ports.
Addresses issue #598.
Diffstat (limited to 'py/objexcept.c')
-rw-r--r--py/objexcept.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objexcept.c b/py/objexcept.c
index 0006554a85..7583d07431 100644
--- a/py/objexcept.c
+++ b/py/objexcept.c
@@ -159,7 +159,7 @@ const mp_obj_type_t mp_type_ ## exc_name = { \
// List of all exceptions, arranged as in the table at:
// http://docs.python.org/3.3/library/exceptions.html
MP_DEFINE_EXCEPTION_BASE(BaseException)
-//MP_DEFINE_EXCEPTION(SystemExit, BaseException)
+MP_DEFINE_EXCEPTION(SystemExit, BaseException)
//MP_DEFINE_EXCEPTION(KeyboardInterrupt, BaseException)
MP_DEFINE_EXCEPTION(GeneratorExit, BaseException)
MP_DEFINE_EXCEPTION(Exception, BaseException)