Skip to content

Commit

Permalink
chore: remove hardcoded test folder ID and handle exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gcharest authored Dec 6, 2024
1 parent 6372727 commit 613464f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/modules/reports/google_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

DELEGATED_USER_EMAIL = os.environ.get("GOOGLE_DELEGATED_ADMIN_EMAIL")
FOLDER_REPORTS_GOOGLE_GROUPS = os.environ.get(
"FOLDER_REPORTS_GOOGLE_GROUPS", "18IYoyg5AFz3ZsZSSqvP1iaJur1V3Fmvi"
"FOLDER_REPORTS_GOOGLE_GROUPS", ""
)


Expand All @@ -22,6 +22,9 @@ def generate_report(args, respond):

def generate_group_members_report(args, respond, logger):
"""Generate a report of Google Groups members."""
if not FOLDER_REPORTS_GOOGLE_GROUPS:
respond("Google Drive folder for reports not set.")
return
exclude_groups = ["AWS-"]
logger.info("Generating Google Groups Members report...")
filename = f"groups_report_{datetime.now().strftime('%Y-%m-%d')}"
Expand Down

0 comments on commit 613464f

Please sign in to comment.