Fix issue showing Bitcoin log on status page

This commit is contained in:
Taylor Helsper 2021-04-04 21:55:42 -05:00
parent 4f34897ca9
commit c0d22a1cb5

View File

@ -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