Skip to content

Commit 66546e0

Browse files
committed
fix config validation
1 parent 839a9b3 commit 66546e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

s3path/current_version.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def register_configuration_parameter(
3131
raise TypeError(f'path argument have to be a {PurePath} type. got {type(path)}')
3232
if parameters and not isinstance(parameters, dict):
3333
raise TypeError(f'parameters argument have to be a dict type. got {type(path)}')
34+
if parameters is None and resource is None:
35+
raise ValueError('user have to specify parameters or resource arguments')
3436
accessor.configuration_map.set_configuration(
3537
path,
3638
resource=resource,

0 commit comments

Comments
 (0)