Skip to content
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

need to add better Exception handling #5

Open
zqian opened this issue Apr 15, 2022 · 0 comments
Open

need to add better Exception handling #5

zqian opened this issue Apr 15, 2022 · 0 comments

Comments

@zqian
Copy link
Member

zqian commented Apr 15, 2022

Following is the error message during recent script run:

Traceback (most recent call last):
File "/app/kaltura_admin.py", line 140, in
main()
File "/app/kaltura_admin.py", line 132, in main
kmc_admin_df = get_kmc_admin_list(kaltura_user_id, kmcs)
File "/app/kaltura_admin.py", line 56, in get_kmc_admin_list
result = client.user.list(filter, pager)
File "/usr/local/lib/python3.8/site-packages/KalturaClient/Plugins/Core.py", line 67584, in list
resultNode = self.client.doQueue()
File "/usr/local/lib/python3.8/site-packages/KalturaClient/Client.py", line 382, in doQueue
resultNode = self.parsePostResult(postResult)
File "/usr/local/lib/python3.8/site-packages/KalturaClient/Client.py", line 339, in parsePostResult
self.throwExceptionIfError(resultNode)
File "/usr/local/lib/python3.8/site-packages/KalturaClient/Client.py", line 411, in throwExceptionIfError
raise exceptionObj
KalturaClient.exceptions.KalturaException: The access to this service is forbidden since the specified partner is blocked (SERVICE_FORBIDDEN_CONTENT_BLOCKED)

Need to add better logging and exception handling for the script.

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

No branches or pull requests

1 participant