Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e08c8f2

Browse files
committed
Fix for an Issue #875
1 parent 19aed90 commit e08c8f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ def _setTamperingFunctions():
940940
priority = PRIORITY.NORMAL if not hasattr(module, '__priority__') else module.__priority__
941941

942942
for name, function in inspect.getmembers(module, inspect.isfunction):
943-
if name == "tamper":
943+
if name == "tamper" and inspect.getargspec(function).args and inspect.getargspec(function).keywords == "kwargs":
944944
found = True
945945
kb.tamperFunctions.append(function)
946946
function.func_name = module.__name__

0 commit comments

Comments
 (0)