gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libextractor-python] branch master updated: attempt to fix


From: gnunet
Subject: [GNUnet-SVN] [libextractor-python] branch master updated: attempt to fix
Date: Mon, 18 Jun 2018 12:10:09 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository libextractor-python.

The following commit(s) were added to refs/heads/master by this push:
     new 2f6673a  attempt to fix
2f6673a is described below

commit 2f6673a3badcc32ec7f3645c4152e9f0fe11f9f6
Author: Nils Gillmann <address@hidden>
AuthorDate: Mon Jun 18 10:10:41 2018 +0000

    attempt to fix
    
    Signed-off-by: Nils Gillmann <address@hidden>
---
 libextractor/examples/__main__.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/libextractor/examples/__main__.py 
b/libextractor/examples/__main__.py
index 746a63a..83c80bc 100644
--- 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()

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]