We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e4ce85 + 53f64f5 commit 61bf5cdCopy full SHA for 61bf5cd
1 file changed
platformshconfig/config.py
@@ -255,16 +255,12 @@ def variables(self):
255
256
If you're looking for a specific variable, the variable() method is a more robust option.
257
This method is for classes where you want to scan the whole variables list looking for a pattern.
258
+ It's valid for there to be no variables defined at all, so there's no guard for missing values.
259
260
Returns:
261
The full variables dict.
262
263
"""
-
264
- if not self._variablesDef:
265
- raise NotValidPlatformException(
266
- 'No variables are defined. Are you sure you are running on Platform.sh?'
267
- )
268
return self._variablesDef
269
270
def routes(self):
0 commit comments