Skip to content

Commit

Permalink
Merge pull request #55 from alphagov/samsimpson1/fix-diff-gen
Browse files Browse the repository at this point in the history
Fix diff generator crash if a fastly service is deleted
  • Loading branch information
samsimpson1 authored Jan 26, 2024
2 parents c52497e + 2b24053 commit 4d63761
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 4d63761

Please sign in to comment.