Skip to content

Commit 6dd58f7

Browse files
committed
ErrorLogFetch: fix a KeyError
Traceback: File ".../troubleshoot/__init__.py", line 299, in _display result = question.display () File ".../troubleshoot/ErrorLogFetch.py", line 157, in display (answers['error_log_timestamp'], now)) KeyError: 'error_log_timestamp'
1 parent 06d2d3c commit 6dd58f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

troubleshoot/ErrorLogFetch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def journal_format (x):
154154
len (self.answers.get ('error_log', []))) == 0:
155155
cmd = ("su -c 'journalctl -u cups.service "
156156
"--since=\"%s\" --until=\"%s\"' > troubleshoot-logs.txt" %
157-
(answers['error_log_timestamp'], now))
157+
(timestamp, now))
158158
self.entry.set_text (cmd)
159159
return True
160160

0 commit comments

Comments
 (0)