diff --git a/CHANGELOG.md b/CHANGELOG.md index 3965935..f39f598 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.5 +### Fixed +* 404 error when fetching a pro user who doesn't have a public page + ## 1.0.4 ### Added * A lot of new user information can be retrieved (feedback, badges & professional info). diff --git a/examples/search_with_args_pro.py b/examples/search_with_args_pro.py index d2bc2ee..02485ad 100644 --- a/examples/search_with_args_pro.py +++ b/examples/search_with_args_pro.py @@ -32,7 +32,7 @@ def main() -> None: # Display only professional ads with their legal/professional data for ad in result.ads: - if ad.user.is_pro and ad.user.pro: + if ad.user.pro: print( f"Store: {ad.user.pro.online_store_name} | " f"SIRET: {ad.user.pro.siret} | "