ssato / python-anyconfig

Python library provides common APIs to load and dump configuration files in various formats
MIT License
277 stars 31 forks source link

Catch expected exception from `container()` #90

Closed yujunz closed 6 years ago

yujunz commented 6 years ago

When it fails to convert, ValueError will be raised, not TypeError

>>> dict('1')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: dictionary update sequence element #0 has length 1; 2 is required
coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 92.609% when pulling 4ad4deef04a50e1b00a085e0816e5c8e75be0306 on yujunz:allow-primitives into 71f7b94d686bdae102c78b019ce647363e71636f on ssato:next.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 92.609% when pulling c7c7bb61826b1c265969af9879fbe88a7cfc0f0b on yujunz:allow-primitives into 71f7b94d686bdae102c78b019ce647363e71636f on ssato:next.

ssato commented 6 years ago

LGTM. Thanks a lot!