fixup removed try except in _auto_publish and cleaned up docstring