Skip to content

Commit

Permalink
Ignore unknown attributes instead of spamming user (#49)
Browse files Browse the repository at this point in the history
* Ignore unknown attributes instead of spamming user

* Debug messages appear only if log is set to DEBUG level
  • Loading branch information
hugovk authored and menegazzo committed Dec 14, 2017
1 parent 2f2273f commit ee850eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions travispy/entities/_entity.py
@@ -1,4 +1,4 @@
from warnings import warn
import log

from travispy._helpers import get_response_contents

Expand Down Expand Up @@ -192,8 +192,8 @@ def _load(cls, infos, session):
try:
setattr(entity, key, value)
except AttributeError:
warn('Unknown {0} attribute {1}'
.format(entity.__class__.__name__, key))
log.debug('Unknown {0} attribute {1}'.format(
entity.__class__.__name__, key))
result.append(entity)

return result
Expand Down

0 comments on commit ee850eb

Please sign in to comment.