Skip to content

Commit

Permalink
fixed config-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
open-dynaMIX committed Oct 28, 2015
1 parent 20da706 commit 0c6d997
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/configfile/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,10 @@ def check_sections(self, parser):


def check_final(self):
try:
for setting in [self.owner[-1], self.group[-1], self.chmodf[-1],
self.chmodd[-1]]:
dosomething = False
if setting:
dosomething = True
except IndexError:
dosomething = True
dosomething = False
for setting in [self.owner[-1], self.group[-1], self.chmodf[-1],
self.chmodd[-1]]:
if setting:
dosomething = True

return dosomething

0 comments on commit 0c6d997

Please sign in to comment.