Skip to content

Commit

Permalink
HOTFIX: backup cron: specify string output in check_output
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnshrmn committed Nov 9, 2023
1 parent e436adc commit be999e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extlinks/common/cron.py
@@ -1,7 +1,6 @@
from subprocess import check_output
from django_cron import CronJobBase, Schedule


class BackupCron(CronJobBase):
RETRY_AFTER_FAILURE_MINS = 120
MIN_NUM_FAILURES = 2
Expand All @@ -15,4 +14,4 @@ def do(self):
# Using check_output here because we want to log STDOUT.
# To avoid logging for commands with sensitive output, import and use
# subprocess.call instead of subprocess.check_output.
return check_output("/app/bin/backup.sh")
return check_output("/app/bin/backup.sh", text=True)

0 comments on commit be999e4

Please sign in to comment.