From 6557c3a0e5a6a15074ffa1eae4eb140115446da1 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 20 Jul 2014 12:40:22 +0200 Subject: [PATCH] fix --- teleforma/management/commands/teleforma-exam-submit-scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-exam-submit-scripts.py b/teleforma/management/commands/teleforma-exam-submit-scripts.py index 2c74e2fb..e4b62bb8 100644 --- a/teleforma/management/commands/teleforma-exam-submit-scripts.py +++ b/teleforma/management/commands/teleforma-exam-submit-scripts.py @@ -33,7 +33,7 @@ class Command(BaseCommand): for script in Script.objects.filter(status=2): logger.logger.info(script.title) if script.file: - if os.path.exists(script.file): + if os.path.exists(script.file.path): script.fix_filename() try: script.submit() -- 2.39.5