Skip to content

Commit

Permalink
more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
srosam committed Feb 3, 2023
1 parent 2159cf2 commit a78cfbf
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from pathlib import Path

messages = []

Expand All @@ -15,12 +16,19 @@ def log_message(message):


def main():

try:
log_message("\nMY_VAR=foo")
log_message("\nMY_VAR=bar")
log_message("\nMY_VAR=baz")
files = []
for p in Path("./").iterdir():
files.append(p.name)
all_files = "\n".join(files)
log_message(f"FILES_LISTING_1={all_files}")

log_message("MY_VAR1=foo")
log_message("MY_VAR2=bar")
log_message("MY_VAR3=baz")
except Exception as e:
log_message("\nMY_VAR=Error")
log_message("ERROR=Error")
finally:
send_log()

Expand Down

0 comments on commit a78cfbf

Please sign in to comment.