From 80dde53dd210b51c7478d8affa84a495dd1538f4 Mon Sep 17 00:00:00 2001 From: Luke Stewart Date: Mon, 23 Dec 2019 17:25:44 +1300 Subject: [PATCH] Fixes misnamed variable - e doesn't exist - outputs the error instead --- overrides_bulk_operations/vacation_overrides.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overrides_bulk_operations/vacation_overrides.py b/overrides_bulk_operations/vacation_overrides.py index 8fb4f0a..581b9fc 100755 --- a/overrides_bulk_operations/vacation_overrides.py +++ b/overrides_bulk_operations/vacation_overrides.py @@ -73,7 +73,7 @@ def create_overrides(): }} ) if not create_response.ok: - message = "HTTP error: %d"%e.response.status_code + message = "HTTP error: %d" % create_response.status_code print("Error creating override; "+message) continue print("Success.")