# HG changeset patch # User David Anderson # Date 1236908658 0 # Node ID c6bb25fa7f7b8f296263e23f6ab403ed9ddb836c # Parent 6a548cbb0f7ee55d8444c6f7bcb45599f59876c2 Create an error module containing the top-level error class. diff -r 6a548cbb0f7e -r c6bb25fa7f7b scripts/release/error.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/release/error.py Fri Mar 13 01:44:18 2009 +0000 @@ -0,0 +1,22 @@ +# Copyright 2009 the Melange authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +__authors__ = [ + # alphabetical order by last name, please + '"David Anderson" ', + ] + + +class Error(Exception): + """Base class for release script exceptions.""" diff -r 6a548cbb0f7e -r c6bb25fa7f7b scripts/release/release.py --- a/scripts/release/release.py Fri Mar 13 00:12:42 2009 +0000 +++ b/scripts/release/release.py Fri Mar 13 01:44:18 2009 +0000 @@ -47,6 +47,8 @@ import subprocess import sys +import error + # Default repository URLs for Melange and the Google release # repository. @@ -59,7 +61,7 @@ MELANGE_RELEASE_RE = re.compile(r'\d-\d-\d{8}') -class Error(Exception): +class Error(error.Error): pass