fix: error handling in read_rwms improved.

This commit is contained in:
Fabian Joswig 2022-11-18 15:59:43 +00:00
parent c4ca0faaa6
commit 64e564c5fc
No known key found for this signature in database

View file

@ -55,7 +55,7 @@ def read_rwms(path, prefix, version='2.0', names=None, **kwargs):
break
if not ls:
raise Exception('Error, directory not found')
raise Exception(f"Error, directory '{path}' not found")
if 'files' in kwargs:
ls = kwargs.get('files')
else: