qosf / awesome-quantum-software

Curated list of open-source quantum software projects.
Creative Commons Zero v1.0 Universal
1.44k stars 300 forks source link

fix: missing "-" character in full-stack libraries section #125

Closed CalMacCQ closed 2 weeks ago

CalMacCQ commented 2 weeks ago

After trying to regenerate the source list for the website by running this script I noticed that there was an AttributeError caused by a formatting issue in this repository.

The line that fails is as follows.

project_description = re.search(r'^.*-.*- (.*)$', line).group(1)

As this regex cannot find a "-" in the avaloni entry the search returns None hence the attribute error.

project_description = re.search(r'^.*-.*- (.*)$', line).group(1)#.strip('\'')
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'

After this is merged, I'll be happy to rerun the script and update the source for the site.

See also the PR in progress -> https://github.com/qosf/qosf.org/pull/115

dlyongemallo commented 2 weeks ago

Thanks for the fix!