File tree 1 file changed +3
-2
lines changed
src/poetry/console/commands
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ def handle(self) -> int:
122
122
123
123
# show the value if no value is provided
124
124
if not self .argument ("value" ) and not self .option ("unset" ):
125
+ if setting_key .split ("." )[0 ] in self .LIST_PROHIBITED_SETTINGS :
126
+ raise ValueError (f"Expected a value for { setting_key } setting." )
127
+
125
128
m = re .match (r"^repos?(?:itories)?(?:\.(.+))?" , self .argument ("key" ))
126
129
value : str | dict [str , Any ]
127
130
if m :
@@ -138,8 +141,6 @@ def handle(self) -> int:
138
141
139
142
self .line (str (value ))
140
143
else :
141
- if setting_key .split ("." )[0 ] in self .LIST_PROHIBITED_SETTINGS :
142
- raise ValueError (f"Expected a value for { setting_key } setting." )
143
144
if setting_key not in self .unique_config_values :
144
145
raise ValueError (f"There is no { setting_key } setting." )
145
146
You can’t perform that action at this time.
0 commit comments