Ad
  • Custom User Avatar

    Yes, and your function is returning None. I'll quote myself (read the posts already here before creating your own, sometimes it helps).

    You're probably using recursion but your function doesn't return the (recursive) call to the function.