X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/SVBaL.git/blobdiff_plain/06cedd05523f072d850e26d82d6394db66632cbc..refs/heads/master:/python/eh_app/AWK/routines.py diff --git a/python/eh_app/AWK/routines.py b/python/eh_app/AWK/routines.py index 6f76b2b..b26e7b2 100644 --- a/python/eh_app/AWK/routines.py +++ b/python/eh_app/AWK/routines.py @@ -196,14 +196,16 @@ def pdfs_erstellen(request, verein, mitglieder, templ_name, data_path, build_nam # Erstelle PDFs for m in mm: - pe.erstellepdf(m) + rc = pe.erstellepdf(m) + if rc != 0: + return rc,0,0 # Ergebnis packen rc = os.system(f'cd {build_path}; tar czf ergebnis.tgz ergebnis') if rc != 0: raise RuntimeError(f"Packen (tar) fehlgeschlagen: {rc}") - return pe.anzahl, pe.gesamtbetrag + return 0, pe.anzahl, pe.gesamtbetrag def vertragsliste_erstellen(verein, data_path): build_path = os.path.join(data_path, "build")