mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
fix: error handling in read_rwms improved.
This commit is contained in:
parent
c4ca0faaa6
commit
64e564c5fc
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue