Shell command error

Having an issue running a shell command service, the error is:

Error running command: find ./share/camera -mtime +0 -type f -delete, return code: 1

NoneType: None

The shell command runs fine in console but causes an error when I call it from Home Assistant, any ideas?