diff --git a/src/jarabe/model/network.py b/src/jarabe/model/network.py
index bd4b7d1..2a16fbe 100644
a
|
b
|
def load_connections(): |
360 | 360 | settings.connection.uuid = uuid |
361 | 361 | nmtype = config.get(section, 'type') |
362 | 362 | settings.connection.type = nmtype |
363 | | autoconnect = bool(config.get(section, 'autoconnect')) |
| 363 | try: |
| 364 | autoconnect = config.getboolean(section, 'autoconnect') |
| 365 | except ValueError, e: |
| 366 | logging.error('Error reading section autoconnect: %s' % e) |
| 367 | continue |
364 | 368 | settings.connection.autoconnect = autoconnect |
365 | | timestamp = int(config.get(section, 'timestamp')) |
| 369 | try: |
| 370 | timestamp = config.getint(section, 'timestamp') |
| 371 | except ValueError, e: |
| 372 | logging.error('Error reading section timestamp: %s' % e) |
| 373 | continue |
366 | 374 | settings.connection.timestamp = timestamp |
367 | 375 | |
368 | 376 | secrets = None |
… |
… |
def load_connections(): |
389 | 397 | if config.has_option(section, 'pairwise'): |
390 | 398 | value = config.get(section, 'pairwise') |
391 | 399 | settings.wireless_security.pairwise = value |
| 400 | else: |
| 401 | logging.error('Error reading section key-mgmt: %s' % |
| 402 | mgmt) |
| 403 | continue |
392 | 404 | except ConfigParser.Error, e: |
393 | 405 | logging.error('Error reading section: %s' % e) |
394 | 406 | else: |