Skip to content

Commit

Permalink
Fix diff generator crash if a fastly service is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
samsimpson1 committed Jan 26, 2024
1 parent c52497e commit 2b24053
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diff-generator/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def generate_unified_diff(vcls):
for address in vcls:
vcl = vcls[address]
before = vcl['before']
if 'after' not in vcl:
continue
after = vcl['after']
diff_gen = unified_diff(
before.split("\n"),
Expand Down

0 comments on commit 2b24053

Please sign in to comment.