-
Notifications
You must be signed in to change notification settings - Fork 209
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
[Bug]: Line 38 in teams.utils.get_used_citations will raise "AttributeError: 'dict' object has no attribute 'position'" #2308
Comments
@frankqianms - Thank you for reaching out! To assist you better, could you please provide a detailed description of the steps you took to encounter the issue? |
I wrote my own SAY_COMMAND in my bot: https://github.com/[frankqianms/custom-datasource-py](https://github.com/frankqianms/custom-datasource-py). If I import |
@frankqianms - We are not quite clear on your issue. Are you developing any Teams app? If yes, could you please share the repro steps to try at our end. Your shared link is not accessible at our end. |
Hey @frankqianms, This seems like a key-access error with the Dict. I believe using brackets should do the trick- noticed you implemented this fix here Did this resolve for you? |
@lilyydu - Yes, it works. |
@frankqianms Thanks for checking. Would you be open to filing a quick PR fix for this when you get the chance? |
@lilyydu I can take a try. And besides the |
@frankqianms That would be greatly appreciated, thank you! There might be some tests in |
Language
Python
Version
latest
Description
The dict object of citation will raise no attribute position if use
citation.position
.if str(citation.position) == match: ^^^^^^^^^^^^^^^^^ AttributeError: 'dict' object has no attribute 'position'
Reproduction Steps
The text was updated successfully, but these errors were encountered: