Putting search for scrot inside try/except