Skip to content

Commit 4861fce

Browse files
committed
protection agains fail
1 parent 4cbca6c commit 4861fce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

madanalysis/misc/run_recast.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,11 @@ def compute_cls(self, analyses, dataset):
11341134
bibfile = os.path.join(self.dirname, "bibliography.bib")
11351135
print_gl_citation = self.main.recasting.global_likelihoods_switch
11361136
with open(bibfile, "w") as bib:
1137-
bib.write(spey.cite() + "\n")
1137+
try:
1138+
bib.write(spey.cite() + "\n")
1139+
except Exception as err:
1140+
self.logger.debug(err)
1141+
pass
11381142
if self.pyhf_config:
11391143
pyhfbib = spey.get_backend_bibtex("pyhf")
11401144
for _, item in pyhfbib.items():

0 commit comments

Comments
 (0)