Skip to content

Commit

Permalink
Fix #102
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Mar 27, 2020
1 parent 0a8c5e4 commit b25dc4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
1.1.1 (unreleased)
==================

- Nothing changed yet.
- Fix a faulty assertion error. See `issue 102
<https://github.com/NextThought/nti.externalization/issues/102>`_.


1.1.0 (2020-03-27)
Expand Down
6 changes: 2 additions & 4 deletions src/nti/externalization/externalization/externalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,8 @@ def to_external_object(
no decaration
"""
# Catch the primitives up here, quickly. This catches
# numbers, strings, and None. Only do this if we're not on the
# second-pass fallback; that means that some representer couldn't handle
# a primitive natively (usually a decimal)
if name != 'second-pass' and isinstance(obj, PRIMITIVES):
# numbers, strings, and None.
if isinstance(obj, PRIMITIVES):
return obj

manager_top = _manager_get() # (name, memos)
Expand Down

0 comments on commit b25dc4a

Please sign in to comment.