Skip to content
Snippets Groups Projects

Make logParser throw error if top jO is not found

Merged Spyros Argyropoulos requested to merge logParser2 into master
All threads resolved!
1 file
+ 7
12
Compare changes
  • Side-by-side
  • Inline
+ 7
12
@@ -238,26 +238,21 @@ def main():
val=tmp.replace('[','').replace(']','')
release=val.split('-')[1]
#checkForBlacklist
if opts.MC_VER!="MC12":
blacklisted=checkBlackList(val.split('-')[0],val.split('-')[1],".",JOsList,location=location)
if blacklisted:
logerr( '- '+name+' = ',"".join(val)+" <-- ERROR: %s"%blacklisted)
else:
loggood( '- '+name+' = ',"".join(val))
blacklisted=checkBlackList(val.split('-')[0],val.split('-')[1],".",JOsList,location=location)
if blacklisted:
logerr( '- '+name+' = ',"".join(val)+" <-- ERROR: %s"%blacklisted)
else:
loginfo( '- '+name+' = ',"".join(val))
loggood( '- '+name+' = ',"".join(val))
if len(JOsErrors):
print("---------------------")
print("MISSING JOs:")
for i in JOsErrors:
if i == "including file \""+MCXX:
#do nothing
logwarn("","INFO: local version of JOs used?")
logerr("",f"ERROR: jO not found! (log.generate should contain lines like: including file \"{MCXX}*.py\")")
else:
logwarn("","ERROR: %s is missing!"%i)
logwarn("","WARNING: %s is missing!"%i)
###
Loading