added try and except to main snippets.py function so that the code exists nicely when the named snippet already exists