I'm not sure if you've been told yet, "it's easier to ask forgiveness than permission" but this is a good case where that would be true. Looks like you're asking permission here, when a try/except would be a little more appropriate