Skip to content

Commit

Permalink
Adds check for python versions below 3.9 and bails out if true
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kasaboski committed Feb 4, 2025
1 parent 5728ccd commit 64d9687
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/flare/bin/cron_job_ingest_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ def get_splunk_service(logger: Logger) -> Service:


if __name__ == "__main__":
if sys.version_info < (3, 9):
sys.exit("Error: This application requires Python 3.9 or higher.")

logger = Logger(class_name=__file__)
splunk_service: Service = get_splunk_service(logger=logger)
app: Application = splunk_service.apps[APP_NAME]
Expand Down

0 comments on commit 64d9687

Please sign in to comment.