edge case for #673

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-24 16:13:22 -04:00
parent ed93cbe3c3
commit dd69003503
3 changed files with 8 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
7.8.5:
- Edge case.
7.8.4:
- Flake8 checking with check --style!
7.8.3:
+1 -1
View File
@@ -3,4 +3,4 @@
# //___/ / / / //___/ / // // / / || / /
# // / / // ((____ // / / ||/ /
__version__ = '7.8.4'
__version__ = '7.8.5'
+5 -1
View File
@@ -208,7 +208,11 @@ class Project(object):
data[section][package].update(_data)
# We lose comments here, but it's for the best.)
return contoml.loads(toml.dumps(data, preserve=True))
try:
return contoml.loads(toml.dumps(data, preserve=True))
except RuntimeError:
return toml.loads(toml.dumps(data, preserve=True))
else:
# Fallback to toml parser, for large files.
try: