From c3afbfa5ed27ae0ee2d21c4a18a9346a87bba117 Mon Sep 17 00:00:00 2001 From: rouggy Date: Wed, 8 Dec 2021 13:28:11 +0100 Subject: [PATCH] update --- plexAutoCollectionUpdater.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plexAutoCollectionUpdater.py b/plexAutoCollectionUpdater.py index 4d43b90..10e6ddc 100644 --- a/plexAutoCollectionUpdater.py +++ b/plexAutoCollectionUpdater.py @@ -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)) \ No newline at end of file +with open(Config.PlexAutoCollectionConfigFilePath, 'r') as f: + try: + print(yaml.safe_load(f)) + except yaml.YAMLError as exc: + print(exc) \ No newline at end of file