summaryrefslogtreecommitdiff
path: root/cron/handler.py
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2019-12-17 15:06:01 +0200
committerYuval Adam <_@yuv.al>2019-12-17 15:06:01 +0200
commit475a911bbdce871bfc5f4f56ab4cc15805b8606b (patch)
tree3b927e578fde08ae81432a88729913a02741e41a /cron/handler.py
parent56aaa0085f024dcf38be45569724674324eccbec (diff)
Fix bad with block
Diffstat (limited to 'cron/handler.py')
-rw-r--r--cron/handler.py6
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()