Thanks for any help:
As said in the error message. A function returns something, so you need to return something. Right now, you're not returning anything.