fixed syntax problems with previous python versions, added additional error messages
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user