Skip to content

Commit 7df7911

Browse files
update fix exception
1 parent 63edcf1 commit 7df7911

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

faassupervisor/storage/config.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,12 @@ def upload_output(self, output_dir_path, parsed_event=None):
234234
provider_type = StrUtils.get_storage_type(output['storage_provider'])
235235
provider_id = StrUtils.get_storage_id(output['storage_provider'])
236236
#Change the output to a private bucket
237-
if provider_type == 'MINIO' and ConfigUtils.read_cfg_var('isolation_level') == 'USER' and \
238-
parsed_event != None and parsed_event.bucket_name in ConfigUtils.read_cfg_var('bucket_list'):
239-
output['path']=parsed_event.bucket_name+"/out"
237+
try:
238+
if provider_type == 'MINIO' and ConfigUtils.read_cfg_var('isolation_level') == 'USER' and \
239+
parsed_event != None and parsed_event.bucket_name in ConfigUtils.read_cfg_var('bucket_list'):
240+
output['path']=parsed_event.bucket_name+"/out"
241+
except:
242+
pass
240243
for file_path in output_files:
241244
# Make sure the file name does not contain new lines or starting slashes
242245
file_name = file_path.replace(f'{output_dir_path}/', '').strip().lstrip('/')

0 commit comments

Comments
 (0)