mirror of
https://github.com/vale981/jobmanager
synced 2025-03-06 02:11:39 -05:00
minor bugfix - decoration a few objects did not work.
This commit is contained in:
parent
392e92da3d
commit
b3f06bf3fb
1 changed files with 5 additions and 4 deletions
|
@ -1261,6 +1261,7 @@ def getCountKwargs(func):
|
|||
Returns None if no keyword arguments are found.
|
||||
"""
|
||||
# Get all arguments of the function
|
||||
if hasattr(func, "__code__"):
|
||||
func_args = func.__code__.co_varnames[:func.__code__.co_argcount]
|
||||
for pair in validCountKwargs:
|
||||
if ( pair[0] in func_args and pair[1] in func_args ):
|
||||
|
|
Loading…
Add table
Reference in a new issue