gitignore added and AttributeError catch