diff options
author | Radomir Dopieralski <sheep-devel@sheep.art.pl> | 2012-10-13 15:20:05 (GMT) |
---|---|---|
committer | Radomir Dopieralski <sheep-devel@sheep.art.pl> | 2012-10-13 15:20:05 (GMT) |
commit | a3d25c662d20f93600c6d87e20afd89a507245f4 (patch) | |
tree | 1c903e53526b09d988b13b9e3cc853f73619768c | |
parent | fe400ea778026ca371100f86faa03182c82a3524 (diff) |
Prevent config from failing when there is no config file1.5.0
-rw-r--r-- | hatta/config.py | 5 | ||||
-rwxr-xr-x | setup.py | 2 |
2 files changed, 5 insertions, 2 deletions
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) @@ -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', |