donate-cpu-server: refactor
This commit is contained in:
parent
6b4f5026f7
commit
e11afb7b0c
|
@ -115,10 +115,11 @@ def crashReport():
|
|||
break
|
||||
html += '</pre>\n'
|
||||
|
||||
if os.path.isfile('crash-history.txt'):
|
||||
FILENAME_CRASH_HISTORY = os.path.expanduser('~/daca@home/crash-history.txt')
|
||||
if os.path.isfile(FILENAME_CRASH_HISTORY):
|
||||
html += '<h2>history</h2>\n'
|
||||
html += '<pre>\n'
|
||||
f = open('crash-history.txt')
|
||||
f = open(FILENAME_CRASH_HISTORY, 'rt')
|
||||
html += f.read()
|
||||
f.close()
|
||||
html += '</pre>'
|
||||
|
|
Loading…
Reference in New Issue