Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter logging to hide massive stacktrace for access issue (#857)
With this change, we will return the ClientError without any extra error or logs in the terminal. As a result, if we capture the ClientError in the script, we will have minimum output. Example query: ```python from datachain.error import ClientError from datachain.lib.dc import C, DataChain try: wds = ( DataChain.from_storage("az://amrit-datachain-test/shards") .filter(C.name.glob("00000000.tar")) .settings(parallel=8, cache=True) ) wds.show() except ClientError as e: print(str(e)) print("Exception caught") ``` Closes #600
- Loading branch information