From e10c25aef096de4e43f0e1f1263265ba729be0e3 Mon Sep 17 00:00:00 2001 From: Tue Herlau <tuhe@dtu.dk> Date: Tue, 17 Jan 2023 00:04:03 +0100 Subject: [PATCH] updates --- src/coursebox/material/homepage_lectures_exercises.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/coursebox/material/homepage_lectures_exercises.py b/src/coursebox/material/homepage_lectures_exercises.py index d4ba93e..769964c 100644 --- a/src/coursebox/material/homepage_lectures_exercises.py +++ b/src/coursebox/material/homepage_lectures_exercises.py @@ -165,8 +165,9 @@ def make_lectures(week=None, mode=0, gather_pdf_out=True, gather_sixup=True, mak pdf_out = slider.latexmk(lecture_texfile, Linux=Linux) all_pdfs.append( (w,pdf_out)) - handle_pdf_collection(paths, all_pdfs, gather_pdf_out=gather_pdf_out, gather_sixup=gather_sixup, odir=odex) - + if len(all_pdfs) > 0: + handle_pdf_collection(paths, all_pdfs, gather_pdf_out=gather_pdf_out, gather_sixup=gather_sixup, odir=odex) +# http://piazza.com/dtu.dk/spring2023/02465/home def handle_pdf_collection(paths, all_pdfs, gather_pdf_out, gather_sixup, odir): tmp_dir = paths['lectures'] + '/Collected/tmp' -- GitLab