diff options
| author | Yuval Adam <_@yuv.al> | 2019-12-17 15:06:01 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2019-12-17 15:06:01 +0200 |
| commit | 475a911bbdce871bfc5f4f56ab4cc15805b8606b (patch) | |
| tree | 3b927e578fde08ae81432a88729913a02741e41a | |
| parent | 56aaa0085f024dcf38be45569724674324eccbec (diff) | |
Fix bad with block
| -rw-r--r-- | cron/handler.py | 6 |
1 files changed, 2 insertions, 4 deletions
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() |
