PYTHON catch ApifyApiError

how can I catch/except ApifyApiError for example: from <where?> import ApifyApiError try: something except ApifyApiError as err: print('APIFY ERROR:', str(err)) where can I find ApifyApiError ?
6 Replies
MEE6
MEE63y ago
@!!!Joefree!!! 👑 just advanced to level 6! Thanks for your contributions! 🎉
!!!Joefree!!! 👑
@thek1tten @pczr @Lukas Krivka @Alexey Udovydchenko 🍻 @ApifyBot 👍
grumpy-cyan
grumpy-cyan3y ago
Looking into it!
!!!Joefree!!! 👑
Thanks 😃
grumpy-cyan
grumpy-cyan3y ago
Quickly checked out the source code, you can import it like this:
from apify_client._errors import ApifyApiError
from apify_client._errors import ApifyApiError
!!!Joefree!!! 👑
Cool! Thank You @thek1tten 🍻

Did you find this page helpful?