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

Configparser Plugin: AttributeError: NoneType object has no attribute append #87

Open
simisimon opened this issue Jan 8, 2022 · 1 comment

Comments

@simisimon
Copy link
Member

The analysis of linux failed.

2022-01-08 00:31:23,055 |    ERROR |             analyzer | An exception occurred during analysis at commit f940260a980a1ad7570dfd7a4b73c6ad2207f738.
2022-01-08 00:31:23,056 |    ERROR |             analyzer | 'NoneType' object has no attribute 'append'

Traceback:

...
  File "/tmp/ssimon/analysis/8/venv/lib/python3.10/site-packages/cfgnet/network/network.py", line 285, in init_network
    plugin.parse_file(
  File "/tmp/ssimon/analysis/8/venv/lib/python3.10/site-packages/cfgnet/plugins/plugin.py", line 81, in parse_file
    artifact = self._parse_config_file(
  File "/tmp/ssimon/analysis/8/venv/lib/python3.10/site-packages/cfgnet/plugins/file_type/configparser_plugin.py", line 41, in _parse_config_file
    config.read_string(dummy_section + file_content)
  File "/usr/local/lib/python3.10/configparser.py", line 724, in read_string
    self.read_file(sfile, source)
  File "/usr/local/lib/python3.10/configparser.py", line 719, in read_file
    self._read(f, source)
  File "/usr/local/lib/python3.10/configparser.py", line 1061, in _read
    cursect[optname].append(value)
AttributeError: 'NoneType' object has no attribute 'append'
@simisimon
Copy link
Member Author

It seems that this problem occurs in the configparser library and not in our own implementation. Unfortunately, we do not know which file is responsible for the error, and checking the corresponding commit does not help either.

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

1 participant