Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.

Commit

Permalink
Only warn about Dictionary __init__ issues once
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Apr 30, 2016
1 parent bfd7fe9 commit af5c6ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion yorm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

__project__ = 'YORM'
__version__ = '0.8.1.post1'
__version__ = '0.8.1.post2'

VERSION = __project__ + '-' + __version__

Expand Down
3 changes: 2 additions & 1 deletion yorm/types/containers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Converter classes for builtin container types."""

import logging
import warnings

from .. import common
from ..bases import Container
Expand Down Expand Up @@ -83,7 +84,7 @@ def update_value(self, data, *, auto_track=True):
try:
cls(**value)
except TypeError as exception:
log.warning("%s: %s", cls.__name__, exception)
warnings.warn("{}: {}".format(cls.__name__, exception))

# Apply the new value
self.clear()
Expand Down

0 comments on commit af5c6ce

Please sign in to comment.