Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def libmtp_check_return(result, func, arguments):
if result:
MTP.debug_stack(arguments[0])
raise CommandFailed(func.__name__, result)
return result