Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 9b3c15b

Browse files
sakshamarora1pdxjohnny
authored andcommitted
base: Update config classmethod in BaseConfigurable class
Signed-off-by: sakshamarora1 <[email protected]>
1 parent 81eebed commit 9b3c15b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dffml/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,11 @@ def config(cls, config, *above):
504504
if inspect.isclass(got) and issubclass(got, BaseConfigurable):
505505
try:
506506
kwargs[field.name] = got.withconfig(
507-
config, *above, *cls.add_label()
507+
config, *above, *cls.add_label()[:-1]
508508
)
509509
except MissingConfig:
510510
kwargs[field.name] = got.withconfig(
511-
config, *above, *cls.add_label()[:-1]
511+
config, *above, *cls.add_label()
512512
)
513513
return cls.CONFIG(**kwargs)
514514

0 commit comments

Comments
 (0)