TypeError fix

Fix for (Issue 27)[https://github.com/cldwalker/bond/issues/27].

Tests passed. Autocompletion works again for my project (Troshka)[https://github.com/pmros/troshka].
It's just another TypeError rescue.

Thank you in advance.