This commit is contained in:
Gregory Salaun 2021-12-08 13:28:11 +01:00
parent ca3b5df00f
commit c3afbfa5ed

View File

@ -79,5 +79,8 @@ for movie in MovieCollectionFinal:
print(f":: {dt.now().strftime('%d-%m-%Y %H:%M:%S')} :: Checking Yaml File...")
with open(Config.PlexAutoCollectionConfigFilePath, 'a') as f:
print(yaml.safe_load(f))
with open(Config.PlexAutoCollectionConfigFilePath, 'r') as f:
try:
print(yaml.safe_load(f))
except yaml.YAMLError as exc:
print(exc)