1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-25 00:09:40 +02:00

code quality

This commit is contained in:
dbarzin 2023-02-14 20:46:52 +01:00
parent 7eca8b3a87
commit d39d4b6d2f
2 changed files with 7 additions and 4 deletions

View file

@ -470,7 +470,7 @@ def wait_device():
# --------------------------------------
def mount():
global device, mount_point
global mount_point
# Mount device
mount_point = mount_device()
log('Partition mounted at %s' % mount_point)
@ -480,7 +480,7 @@ def mount():
display_image("WAIT")
return "WAIT"
try:
statvfs=os.statvfs(mount_point)
os.statvfs(mount_point)
except Exception as e :
log("error=%s" % e)
logging.info("An exception was thrown!", exc_info=True)
@ -577,7 +577,7 @@ def loop(state):
# --------------------------------------
"""Main entry point"""
def main(stdscr):
def main():
try :
state="START"
while (state!="STOP"):