Skip to content

Conversation

@spaceone
Copy link
Contributor

>>> from ldap.extop.dds import RefreshRequest
>>> req = RefreshRequest(RefreshRequest.requestName, 'uid=temp,dc=freeiam,dc=org', 86400)
>>> repr(req)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/ldap/extop/__init__.py", line 31, in __repr__
    return f'{self.__class__.__name__}({self.requestName},{self.requestValue})'
                                                           ^^^^^^^^^^^^^^^^^
AttributeError: 'RefreshRequest' object has no attribute 'requestValue'. Did you mean: 'requestName'?

>>> from ldap.extop.dds import RefreshRequest
>>> req = RefreshRequest(RefreshRequest.requestName, 'uid=temp,dc=freeiam,dc=org', 86400)
>>> repr(req)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/ldap/extop/__init__.py", line 31, in __repr__
    return f'{self.__class__.__name__}({self.requestName},{self.requestValue})'
                                                           ^^^^^^^^^^^^^^^^^
AttributeError: 'RefreshRequest' object has no attribute 'requestValue'. Did you mean: 'requestName'?
Copy link
Contributor

@droideck droideck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@droideck droideck merged commit 414ae1d into python-ldap:main Oct 21, 2025
16 checks passed
@spaceone
Copy link
Contributor Author

ah, I'm sorry, I didn't consider code, which passes None for the requestName. Fixed in: #600

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

Successfully merging this pull request may close these issues.

2 participants