Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadomir 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)
commita3d25c662d20f93600c6d87e20afd89a507245f4 (patch)
tree1c903e53526b09d988b13b9e3cc853f73619768c
parentfe400ea778026ca371100f86faa03182c82a3524 (diff)
Prevent config from failing when there is no config file1.5.0
-rw-r--r--hatta/config.py5
-rwxr-xr-xsetup.py2
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)
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',