File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ def createScriptDoc(self, script: str):
181
181
if not helpMessage :
182
182
LOG .warning ("NO DOC for %s" , scriptName )
183
183
helpMessage = "Oops, we couldn't generate a description for this command."
184
+ self .exitcode = 1
184
185
185
186
# Script reference
186
187
fileContent = textwrap .dedent (
Original file line number Diff line number Diff line change 48
48
LOG .info ("Building command reference" )
49
49
from diracdoctools .cmd .commandReference import run as buildCommandReference
50
50
51
- buildCommandReference (configFile = "../docs.conf" )
51
+ if buildCommandReference (configFile = "../docs.conf" ) != 0 :
52
+ raise RuntimeError ("Something went wrong with the documentation creation" )
52
53
53
54
# singlehtml build needs too much memory, so we need to create less code documentation
54
55
buildType = "limited" if any ("singlehtml" in arg for arg in sys .argv ) else "full"
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def __call__(self, func=None):
51
51
return functools .wraps (func )(self )
52
52
53
53
# Iterate through all known entry_points looking for self.scriptName
54
- matches = [ep for ep in metadata .entry_points ()[ "console_scripts" ] if ep .name == self .scriptName ]
54
+ matches = [ep for ep in metadata .entry_points (group = "console_scripts" ) if ep .name == self .scriptName ]
55
55
if not matches :
56
56
raise NotImplementedError ("Something is very wrong" )
57
57
You can’t perform that action at this time.
0 commit comments