Index: cloud_sync.py =================================================================== diff -u -rcad8efbb3daa666dae65e37d1b0bc8f41fc01ed9 -r78fd392821abf65d46d47982d391808a02c34249 --- cloud_sync.py (.../cloud_sync.py) (revision cad8efbb3daa666dae65e37d1b0bc8f41fc01ed9) +++ cloud_sync.py (.../cloud_sync.py) (revision 78fd392821abf65d46d47982d391808a02c34249) @@ -33,11 +33,11 @@ sleep(5) # wait for UI to prepare the configurations partition try: - g_config = helpers_read_config(CONFIG_PATH) - - if g_config[CONFIG_DEVICE][CONFIG_DEVICE_MODE] == 'operation': + if os.path.isfile(OPERATION_CONFIG_FILE_PATH) and os.access(OPERATION_CONFIG_FILE_PATH, os.R_OK): g_config = helpers_read_config(OPERATION_CONFIG_FILE_PATH) CONFIG_PATH = OPERATION_CONFIG_FILE_PATH + else: + g_config = helpers_read_config(CONFIG_PATH) except Exception as e: g_utils.logger.error("Error reading config file - {0}".format(e)) sys.exit(0)