Mercurial > hgweb.cgi > hwm
changeset 57:d9170c4ce812
Fixed incorrect exception being thrown when the configuration file is not found. IN: -
author | John Schneiderman |
---|---|
date | Wed, 11 Mar 2015 20:40:37 +0100 |
parents | 8b9816c1b322 |
children | 4f4599ea035b |
files | src/config.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/config.py Tue Mar 10 19:43:21 2015 +0100 +++ b/src/config.py Wed Mar 11 20:40:37 2015 +0100 @@ -66,7 +66,7 @@ self.__parser = SafeConfigParser() if not self.__parser.read(path): - raise Error("Failed to find configuration file.") + raise ValueError("Failed to find configuration file.") if self.__parser.has_section('Mercurial'): if self.__parser.has_option('Mercurial', 'Base'):