mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
Allow getJSON errors to be ignored
This change is mostly motivated to get a more stable CI build (we're building the Hugo site there, with Instagram and Twitter shortcodes sometimes failing). Fixes #7866
This commit is contained in:
@@ -60,11 +60,11 @@ func (c *rstConverter) getRstContent(src []byte, ctx converter.DocumentContext)
|
||||
path := getRstExecPath()
|
||||
|
||||
if path == "" {
|
||||
logger.ERROR.Println("rst2html / rst2html.py not found in $PATH: Please install.\n",
|
||||
logger.Println("rst2html / rst2html.py not found in $PATH: Please install.\n",
|
||||
" Leaving reStructuredText content unrendered.")
|
||||
return src
|
||||
}
|
||||
logger.INFO.Println("Rendering", ctx.DocumentName, "with", path, "...")
|
||||
logger.Println("Rendering", ctx.DocumentName, "with", path, "...")
|
||||
var result []byte
|
||||
// certain *nix based OSs wrap executables in scripted launchers
|
||||
// invoking binaries on these OSs via python interpreter causes SyntaxError
|
||||
|
Reference in New Issue
Block a user