We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e4ce85 commit 53f64f5Copy full SHA for 53f64f5
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