From: Ed Bartosh Date: Sun, 11 Aug 2013 20:26:21 +0000 (+0300) Subject: Moved RepaException to common.py module X-Git-Tag: 0.1~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64bf3b95d09eabe988ee3da4b8ac709af85f4433;p=tools%2Frepa.git Moved RepaException to common.py module This exception will be called from may repa modules. Let's put it in common. Other common entities will go there too. Change-Id: Ice0bc5abf5386a73dbb7b8457554688a2493f148 Signed-off-by: Ed Bartosh Reviewed-on: https://otctools.jf.intel.com/review/5841 Tested-by: OTC Tools Tester Reviewed-by: Hasan Wan --- diff --git a/repa/common.py b/repa/common.py new file mode 100644 index 0000000..2fd61d5 --- /dev/null +++ b/repa/common.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python + +""" +REPA: Release Engineering Process Assistant. + +Copyright (C) Intel Corporation 2013 +Licence: GPL version 2 +Author: Ed Bartosh + +Common module. +Common functions, classes, exceptions. +""" + +class RepaException(Exception): + """Custom repa exception. All repa modules should use it.""" + pass + diff --git a/repa/main.py b/repa/main.py index 1f1c402..701a674 100755 --- a/repa/main.py +++ b/repa/main.py @@ -18,9 +18,7 @@ import ConfigParser from os.path import expanduser from argparse import ArgumentParser -class RepaException(Exception): - """Custom repa exception. All repa modules should use it.""" - pass +from repa.common import RepaException def parse_args(argv):