fix: add error handling to bitbucket file filtering

This commit is contained in:
furikake6000 2025-07-21 10:15:57 +00:00
parent 380437b44f
commit bdee6f9f36

View file

@ -57,7 +57,7 @@ def filter_ignored(files, platform = 'github'):
continue continue
files = files_o files = files_o
elif platform == 'bitbucket_server': elif platform == 'bitbucket_server':
files = [f for f in files if not r.match(f['path']['toString'])] files = [f for f in files if f.get('path', {}).get('toString') and not r.match(f['path']['toString'])]
elif platform == 'gitlab': elif platform == 'gitlab':
# files = [f for f in files if (f['new_path'] and not r.match(f['new_path']))] # files = [f for f in files if (f['new_path'] and not r.match(f['new_path']))]
files_o = [] files_o = []