You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the ref_cls argument passed to the Manager.get_related_objects function is neither Outgoing nor Incoming, the calling application fails with a LocalUnboundError which states that rel_query has not been defined.
When the
ref_cls
argument passed to theManager.get_related_objects
function is neitherOutgoing
norIncoming
, the calling application fails with aLocalUnboundError
which states thatrel_query
has not been defined.Looking at the code at...
https://github.com/onefinestay/kaiso/blob/master/kaiso/persistence.py#L854
...it seems that inserting a simple
else
clause that raises aValueError
after line 859 could present a more meaningful error message in this case.The text was updated successfully, but these errors were encountered: