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:
parent
7eca8b3a87
commit
d39d4b6d2f
2 changed files with 7 additions and 4 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue