From 475a911bbdce871bfc5f4f56ab4cc15805b8606b Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 17 Dec 2019 15:06:01 +0200 Subject: Fix bad with block --- cron/handler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cron') diff --git a/cron/handler.py b/cron/handler.py index 469c429..84a4071 100644 --- a/cron/handler.py +++ b/cron/handler.py @@ -83,8 +83,7 @@ class GeshemUpdate(): def update(event, context): - with GeshemUpdate() as gu: - res = gu.run() + res = GeshemUpdate().run() body = { "message": "SUCCESS: \n" + res, "input": event @@ -97,5 +96,4 @@ def update(event, context): if __name__ == "__main__": - with GeshemUpdate() as gu: - res = gu.run() + GeshemUpdate().run() -- cgit v1.3.1