We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d102901 + 0ea5a1d commit 85701b4Copy full SHA for 85701b4
lambda_uploader/config.py
@@ -124,8 +124,8 @@ def _load_config(self, lambda_file=None):
124
if not lambda_file:
125
lambda_file = path.join(self._path, 'lambda.json')
126
127
- if not path.isfile(lambda_file):
128
- raise Exception("%s not found" % lambda_file)
+ if not path.isfile(lambda_file) or path.isdir(lambda_file):
+ raise Exception("%s not a valid configuration file" % lambda_file)
129
130
with open(lambda_file) as config_file:
131
self._config = json.load(config_file)
0 commit comments