mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-13 17:09:15 +00:00
Fix issue showing Bitcoin log on status page
This commit is contained in:
parent
4f34897ca9
commit
c0d22a1cb5
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
import subprocess
|
||||
|
||||
#==================================
|
||||
# Utilities
|
||||
|
@ -37,8 +38,8 @@ def get_file_log(file_path):
|
|||
lines = status_log.split('\n')
|
||||
lines.reverse()
|
||||
status_log = '\n'.join(lines)
|
||||
except:
|
||||
status_log = "ERROR"
|
||||
except Exception as e:
|
||||
status_log = "ERROR ({})".format(str(e))
|
||||
return status_log
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user