commit 2f6673a3badcc32ec7f3645c4152e9f0fe11f9f6
parent d7b35fc2672855a9494fdde0f2c04f0f77f8198a
Author: Nils Gillmann <gillmann@infotropique.org>
Date: Mon, 18 Jun 2018 10:10:41 +0000
attempt to fix
Signed-off-by: Nils Gillmann <gillmann@infotropique.org>
Diffstat:
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/libextractor/examples/__main__.py b/libextractor/examples/__main__.py
@@ -62,10 +62,13 @@ def print_k(xt, plugin, type, format, mime, data, datalen):
return 0
def main():
- # stuff
- for arg in sys.argv[1:]:
- logger.debug("Keywords from %s:" % arg)
- xtract.extract(print_k, None, arg)
+ try:
+ # stuff
+ for arg in sys.argv[1:]:
+ logger.debug("Keywords from %s:" % arg)
+ xtract.extract(print_k, None, arg)
+ except Exception as e:
+ logger.debug(e)
if __name__ == "__main__":
main()