* Éric Araujo <[email protected]> [2023-01-20 22:01]: > tl;dr: replace the body of the try block with this: > > argspec = inspect.signature(inspect.getframeinfo) > argspec = str(argspec).replace('*', '\\*') > signature = '%s%s' % (func_name, argspec)
Should that not use "func" instead of "inspect.getframeinfo"?
argspec = inspect.signature(func)
argspec = str(argspec).replace('*', '\\*')
signature = '%s%s' % (func_name, argspec)
- FC

