Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f0b29729
Commit
f0b29729
authored
Jul 01, 2014
by
Damien George
Browse files
py, objexcept: Only check for locked gc if gc is enabled.
parent
f065344d
Changes
1
Show whitespace changes
Inline
Side-by-side
py/objexcept.c
View file @
f0b29729
...
...
@@ -336,10 +336,13 @@ void mp_obj_exception_clear_traceback(mp_obj_t self_in) {
}
void
mp_obj_exception_add_traceback
(
mp_obj_t
self_in
,
qstr
file
,
machine_uint_t
line
,
qstr
block
)
{
#if MICROPY_ENABLE_GC
if
(
gc_is_locked
())
{
// We can't allocate memory, so don't bother to try
return
;
}
#endif
GET_NATIVE_EXCEPTION
(
self
,
self_in
);
// for traceback, we are just using the list object for convenience, it's not really a list of Python objects
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment