[GRASS-SVN] r72923 - sandbox/wenzeslaus/g.citation
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 28 18:05:30 PDT 2018
Author: wenzeslaus
Date: 2018-06-28 18:05:30 -0700 (Thu, 28 Jun 2018)
New Revision: 72923
Modified:
sandbox/wenzeslaus/g.citation/g.citation.py
Log:
g.citation: make printing also part of the -s error to warning try-except
There is not much distinction at this point between validating parsing
and looking on what is actually needed for that particular output format.
Modified: sandbox/wenzeslaus/g.citation/g.citation.py
===================================================================
--- sandbox/wenzeslaus/g.citation/g.citation.py 2018-06-29 01:01:19 UTC (rev 72922)
+++ sandbox/wenzeslaus/g.citation/g.citation.py 2018-06-29 01:05:30 UTC (rev 72923)
@@ -480,6 +480,7 @@
for name in names:
try:
citation = citation_for_module(name)
+ print_citation(citation, output_format)
except RuntimeError as error:
message = _("Module {name}: {error}".format(**locals()))
if flags['s']:
@@ -487,7 +488,6 @@
continue
else:
gs.fatal(message)
- print_citation(citation, output_format)
# TODO: consider "Extended by" versus original authors
More information about the grass-commit
mailing list