summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()