[issue45699] AttributeError: 'list' object has no attribute 'find'

Kishor Pawar report at bugs.python.org
Wed Nov 3 03:49:03 EDT 2021


New submission from Kishor Pawar <krisp1506 at gmail.com>:

```
Traceback (most recent call last):
  File "gpgcheck.py", line 33, in <module>
    if config.get(repoName, 'gpgcheck', fallback='1') != "1":
  File "/usr/lib64/python3.6/configparser.py", line 802, in get
    d)
  File "/usr/lib64/python3.6/configparser.py", line 394, in before_get
    self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File "/usr/lib64/python3.6/configparser.py", line 413, in _interpolate_some
    p = rest.find("%")
AttributeError: 'list' object has no attribute 'find'
```


I checked all the calls made to `_interpolate_some`, and each call seems to pass the `list` type argument in the 4th position, but then function calling a `find` method on that 4th `list` type argument.  Which is causing above error.

----------
components: Parser
messages: 405584
nosy: krisp1506, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: AttributeError: 'list' object has no attribute 'find'
type: crash
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45699>
_______________________________________


More information about the Python-bugs-list mailing list