Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract.py: Fails for .ml files #203

Open
matthiasgeihs opened this issue Feb 15, 2024 · 4 comments
Open

extract.py: Fails for .ml files #203

matthiasgeihs opened this issue Feb 15, 2024 · 4 comments

Comments

@matthiasgeihs
Copy link

First of all: Great project!

I stumbled across a minor bug when reading .ml files with the extract.py script.

# Identify Type of file - either LDIF or MasterList (CMS)
if filename.lower().endswith( ".ldif" ):
# Read and parse LDIF File
(cns,masterLists) = readAndExtractLDIFFile( filename )
elif filename.lower().endswith( ".ml" ):
masterLists = readInMasterListFile( filename )
print( f"Read in {len(masterLists)} masterlist files" )
print( f"Read in {cns} CNS" )
for index, ml in enumerate(masterLists):
certNr = 1
print( "-----------------------------------" )
print(f"Verifying and extracting MasterList {index} - {cns[index]}")

For .ml files, the variable cns is not set, and hence the script fails at line 37.

@AndyQ
Copy link
Owner

AndyQ commented Feb 29, 2024

Hi @matthiasgeihs Can you give an example of an ml list that fails? (or a location I can get one from?)

@matthiasgeihs
Copy link
Author

If I see it correctly, this fails for all .ml files. Concretely, I was testing with the German CSCA Master List.

@AndyQ
Copy link
Owner

AndyQ commented Apr 23, 2024

I've just fixed this - its in main and will be in the next release

@matthiasgeihs
Copy link
Author

Feel free to close the issue whenever you feel like it. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants