Fokko commented on code in PR #5546:
URL: https://github.com/apache/iceberg/pull/5546#discussion_r950535720
##########
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've just cleaned this up. This was a WIP and is required if you want to
pass additional arguments along the decorator. This is easy by creating a
partial that already binds the arguments. But this is actually not required.
I've resolved the conflicts and simplified this code a bit.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]