Fix UnsatisfiedRequirement rendering

The issue helpfully described and solution suggested by eugenhu.
UnsatisfiedRequirement's __str__ depends on there being two arguments
(the first one optionally None).

Closes GH-129.
This commit is contained in:
Jakub Stasiak 2019-12-09 23:56:33 +01:00
parent 23cd45935b
commit cf7b0757dc
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ class Binder:
self._bindings[interface] = binding self._bindings[interface] = binding
return binding, self return binding, self
raise UnsatisfiedRequirement(interface) raise UnsatisfiedRequirement(None, interface)
def _is_special_interface(self, interface): def _is_special_interface(self, interface):
# "Special" interfaces are ones that you cannot bind yourself but # "Special" interfaces are ones that you cannot bind yourself but