Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def wrapper(*args, **kwargs):
if not self.created:
raise NoPortfolio(func.__name__)
out = func(*args, **kwargs)
return out