Fix regression: API billetin par code_nip

This commit is contained in:
Emmanuel Viennet 2021-10-04 15:09:19 +02:00
parent e32d7b1b4e
commit 0ab9a281a9
3 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,6 @@ def makeParas(txt, style, suppress_empty=False):
else:
raise e
except Exception as e:
detail = " " + str(e)
log(traceback.format_exc())
log("Invalid pdf para format: %s" % txt)
result = [

View File

@ -274,9 +274,10 @@ def formsemestre_bulletinetud(
xml_with_decisions=False,
force_publishing=False,
prefer_mail_perso=False,
code_nip=None,
):
if not etudid:
raise ScoValueError("Paramètre manquant: etudid est requis")
if not (etudid or code_nip):
raise ScoValueError("Paramètre manquant: spécifier code_nip ou etudid")
if not formsemestre_id:
raise ScoValueError("Paramètre manquant: formsemestre_id est requis")
return sco_bulletins.formsemestre_bulletinetud(

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.0.46"
SCOVERSION = "9.0.47"
SCONAME = "ScoDoc"