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