You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/08/19 16:54:54 UTC

[GitHub] [iceberg] rdblue commented on a diff in pull request #5546: Python: Add wrapper to throw the exit code

rdblue commented on code in PR #5546:
URL: https://github.com/apache/iceberg/pull/5546#discussion_r950393587


##########
python/pyiceberg/cli/console.py:
##########
@@ -36,6 +37,23 @@
 SUPPORTED_CATALOGS: Dict[str, Type[Catalog]] = {"thrift": HiveCatalog, "http": RestCatalog}
 
 
+def catch_exception(func=None):
+    if not func:
+        return partial(catch_exception)

Review Comment:
   I don't quite understand what's happening with this decorator. The wrapper part makes sense to me.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org