Refactor code for readability and compatibility.
This commit is contained in:
parent
a09835049b
commit
c6d9c0619e
43 changed files with 129 additions and 112 deletions
|
|
@ -539,6 +539,7 @@ def holds(accessing_obj, accessed_obj, *args, **kwargs):
|
|||
if check_holds(accessed_obj.dbid):
|
||||
return True
|
||||
except Exception:
|
||||
# we need to catch any trouble here
|
||||
pass
|
||||
return hasattr(accessed_obj, "obj") and check_holds(accessed_obj.obj.dbid)
|
||||
if len(args) == 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue