fixed syntax problems with previous python versions, added additional error messages

This commit is contained in:
2024-04-01 01:41:27 +02:00
parent 378ebcebf6
commit 3b747f56ba
2 changed files with 13 additions and 8 deletions

View File

@@ -28,11 +28,11 @@ class Userconfig:
if not os.path.isfile(package_config_file):
self._cfg.debug.stdout(f'No config file {self._cfg.get("configfile")} in {package_dir}, skipping',
0, 'ERROR')
return None
return None, None
dir_config = self.get_config(package_config_file)
if not dir_config:
self._cfg.debug.stdout(f'Cannot read config file {package_config_file}, skipping', 0, 'ERROR')
return None
return None, None
classes = []
for category in os.scandir(package_dir):
if category.path == package_config_file: