Closed Julian closed 10 years ago
The changes make sense, the build is failing though: https://travis-ci.org/hynek/characteristic/jobs/34248947
Both fixed.
Thanks and sorry I didn’t get back sooner to you!
Would you mind explaining why you went for TypeError? I kind of feel like it’s a RuntimeError…
It's what you get for stuff that doesn't take **kwargs if you provide a kwarg that the callable doesn't know about (and the message matches what's emulated here). On Sep 8, 2014 4:54 AM, "Hynek Schlawack" notifications@github.com wrote:
Thanks and sorry I didn’t get back sooner to you!
Would you mind explaining why you went for TypeError? I kind of feel like it’s a RuntimeError…
— Reply to this email directly or view it on GitHub https://github.com/hynek/characteristic/pull/18#issuecomment-54791633.
Ah, wonderful thanks!
Prevent
attributes()
from silently swallowing any kwargs it doesn't understand.