yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject yetus git commit: YETUS-424 Show more helpful error message in case of missing dependency
Date Thu, 07 Jul 2016 23:03:33 GMT
Repository: yetus
Updated Branches:
  refs/heads/master 0f3e09db0 -> 9b1f60de6


YETUS-424 Show more helpful error message in case of missing dependency

Signed-off-by: Allen Wittenauer <aw@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/9b1f60de
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/9b1f60de
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/9b1f60de

Branch: refs/heads/master
Commit: 9b1f60de663f545fbb0f9269cbd5b0cf68f83183
Parents: 0f3e09d
Author: Ajay Yadava <ajaynsit@gmail.com>
Authored: Fri Jul 8 00:20:06 2016 +0530
Committer: Allen Wittenauer <aw@apache.org>
Committed: Thu Jul 7 16:03:24 2016 -0700

----------------------------------------------------------------------
 release-doc-maker/releasedocmaker.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/9b1f60de/release-doc-maker/releasedocmaker.py
----------------------------------------------------------------------
diff --git a/release-doc-maker/releasedocmaker.py b/release-doc-maker/releasedocmaker.py
index 8cffc92..aa5f5f7 100755
--- a/release-doc-maker/releasedocmaker.py
+++ b/release-doc-maker/releasedocmaker.py
@@ -36,8 +36,12 @@ try:
     set
 except NameError:
     from sets import Set as set  # pylint: disable=redefined-builtin
-
-import dateutil.parser
+try:
+    import dateutil.parser
+except ImportError:
+    print "This script requires python-dateutil module to be installed. " \
+          "You can install it using:\n\t pip install python-dateutil"
+    sys.exit(1)
 
 RELEASE_VERSION = {}
 NAME_PATTERN = re.compile(r' \([0-9]+\)')


Mime
View raw message