-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix attributeError of persona, httpxTimeout tweeter (#1957)
``` File "/app/utils/social.py", line 118, in add_twitter_to_persona AttributeError: 'NoneType' object has no attribute 'replace' ``` ``` File "/app/utils/social.py", line 72, in upsert_persona_from_twitter_profile AttributeError: 'NoneType' object has no attribute 'replace' ``` ``` File "/app/routers/apps.py", line 224, in get_or_create_user_persona AttributeError: 'NoneType' object has no attribute 'replace' ``` ``` File "/app/utils/social.py", line 67, in verify_latest_tweet UnboundLocalError: cannot access local variable 'latest_tweet' where it is not associated with a value ``` ``` File "/app/utils/social.py", line 24, in get_twitter_profile response = await client.get(url, headers=headers) httpx.ReadTimeout ```
- Loading branch information
Showing
2 changed files
with
24 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters