From 6ec4f5107795610be12b24f1851c6419d16d66fb Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 16 Feb 2018 11:18:56 -0800 Subject: [PATCH] Don't delete session cache folder on startup --- plexpy/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plexpy/__init__.py b/plexpy/__init__.py index a4441082..169f8756 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -158,13 +158,6 @@ def initialize(config_file): except OSError as e: logger.error(u"Could not create cache dir '%s': %s" % (CONFIG.CACHE_DIR, e)) - if CONFIG.CACHE_DIR: - session_metadata_folder = os.path.join(CONFIG.CACHE_DIR, 'session_metadata') - try: - shutil.rmtree(session_metadata_folder, ignore_errors=True) - except OSError as e: - pass - # Initialize the database logger.info(u"Checking if the database upgrades are required...") try: