Skip to content

Commit

Permalink
don't redefine builtin vars
Browse files Browse the repository at this point in the history
  • Loading branch information
furlongm committed Mar 31, 2016
1 parent c0ec6d5 commit 726bd78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvpn-monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def load_default_settings(self):
'port': '5555', 'order': '1'}

def parse_global_section(self, config):
vars = ['site', 'logo', 'latitude', 'longitude', 'maps']
for var in vars:
global_vars = ['site', 'logo', 'latitude', 'longitude', 'maps']
for var in global_vars:
try:
self.settings[var] = config.get('OpenVPN-Monitor', var)
except configparser.NoOptionError:
Expand Down

0 comments on commit 726bd78

Please sign in to comment.