Skip to content

Commit d37721b

Browse files
committed
add missing help text for history_length pragma. Also don't crash report missing text if text is missing
1 parent 30f9fea commit d37721b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

roundup/admin.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ def __init__(self):
132132
_("Have 'display designator' and 'specification class' show\n"
133133
" protected fields: creator, id etc.\n"),
134134

135+
'history_length':
136+
_("Set the number of lines of history to keep for this session.\n"
137+
" -1 is infinite.\n"),
138+
135139
'indexer_backend':
136140
_("Set indexer to use when running 'reindex' NYI\n"),
137141

@@ -1508,7 +1512,11 @@ def do_pragma(self, args):
15081512
continue
15091513
print(" %s=%s" % (key, self.settings[key]))
15101514
if is_verbose:
1511-
print(" %s" % self.settings_help[key])
1515+
try:
1516+
print(" %s" % self.settings_help[key])
1517+
except KeyError:
1518+
print(_(" Help for this pragma is missing. "
1519+
"Please report it to the Roundup project.\n"))
15121520

15131521
return
15141522

0 commit comments

Comments
 (0)