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:
parent
23cd45935b
commit
cf7b0757dc
|
@ -590,7 +590,7 @@ class Binder:
|
|||
self._bindings[interface] = binding
|
||||
return binding, self
|
||||
|
||||
raise UnsatisfiedRequirement(interface)
|
||||
raise UnsatisfiedRequirement(None, interface)
|
||||
|
||||
def _is_special_interface(self, interface):
|
||||
# "Special" interfaces are ones that you cannot bind yourself but
|
||||
|
|
Loading…
Reference in New Issue