From a3d25c662d20f93600c6d87e20afd89a507245f4 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Sat, 13 Oct 2012 15:20:05 +0000 Subject: Prevent config from failing when there is no config file --- diff --git a/hatta/config.py b/hatta/config.py index b10de09..14a2361 100644 --- a/hatta/config.py +++ b/hatta/config.py @@ -127,7 +127,10 @@ class WikiConfig(object): files = [self.get('config_file', self.default_filename)] parser = mercurial.config.config() for path in files: - parser.read(path) + try: + parser.read(path) + except IOError: + pass section = 'hatta' try: options = parser.items(section) diff --git a/setup.py b/setup.py index 66ce4f9..60addb2 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ import setuptools ################### Common settings ###################### setuptools.setup( - name='hatta', + name='Hatta', version='1.5.0', license='GNU General Public License (GPL)', author='Radomir Dopieralski', -- cgit v0.9.1