From 2b24053bd544f0a40bde62236312b7288c965529 Mon Sep 17 00:00:00 2001 From: Sam Simpson Date: Fri, 26 Jan 2024 11:27:06 +0000 Subject: [PATCH] Fix diff generator crash if a fastly service is deleted --- diff-generator/lambda_function.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/diff-generator/lambda_function.py b/diff-generator/lambda_function.py index d75c746..7989c84 100644 --- a/diff-generator/lambda_function.py +++ b/diff-generator/lambda_function.py @@ -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"),