[GRASS-SVN] r73082 - sandbox/wenzeslaus/g.citation

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 12 20:52:03 PDT 2018


Author: wenzeslaus
Date: 2018-08-12 20:52:02 -0700 (Sun, 12 Aug 2018)
New Revision: 73082

Modified:
   sandbox/wenzeslaus/g.citation/g.citation.py
Log:
g.citation: report number of modules with parsing issues

Modified: sandbox/wenzeslaus/g.citation/g.citation.py
===================================================================
--- sandbox/wenzeslaus/g.citation/g.citation.py	2018-08-13 02:41:03 UTC (rev 73081)
+++ sandbox/wenzeslaus/g.citation/g.citation.py	2018-08-13 03:52:02 UTC (rev 73082)
@@ -726,6 +726,7 @@
                        " the option style to be set"))
     vertical_separator = options['vertical_separator']
 
+    error_count = 0
     for name in names:
         try:
             citation = citation_for_module(name, add_grass=flags['d'])
@@ -737,9 +738,12 @@
             message = _("Module {name}: {error}".format(**locals()))
             if flags['s']:
                 gs.warning(message)
+                error_count += 1
                 continue
             else:
                 gs.fatal(message)
+    if flags['s'] and len(names) > 1:
+        gs.warning(_("Errors in parsing {} modules").format(error_count))
 
 # TODO: consider "Extended by" versus original authors
 



More information about the grass-commit mailing list