Commit e8d9f3a8 authored by Jon Butterworth's avatar Jon Butterworth Committed by Christian Gutschow

fix for rare dupicate bibtex entries

parent b8c369e2
2020-02-01 Jon Butterworth <j.butterworth@cern.ch>
* Error trapping in rivet-findid for rare cases
when two bibtex entries are found (e.g. rivet-findid 1487288)
2020-01-15 Jon Butterworth <j.butterworth@cern.ch>
* Add a warning to CMS WZ analysis CMS_2016_I1487288 because
......
......@@ -160,7 +160,13 @@ def _search_inspire(url):
if k=='code':
entries[v] = c.text
if entries.get('9') == 'INSPIRETeX':
result['bibtex'] = entries['a']
try:
result['bibtex'] = entries['a']
except:
try:
result['bibtex'] = entries['z']
except:
print ("Error finding bibtex",entries)
elif entries.get('9') == 'SPIRESTeX':
result['bibtex'] = entries['a']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment