Changeset 10825 in genesis for tools


Ignore:
Timestamp:
May 13, 2012, 12:22:59 PM (13 years ago)
Author:
rick
Message:

Sigh, coffee before commit (or unit-test, properly).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10824 r10825  
    465465      (ip, cidr) = datadump[iface_key]['ip'].split('/')
    466466      datadump[iface_key]['netmask'] = cidr2netmask(cidr)
    467     except (AttributeError, ValueError):
     467    except (AttributeError, ValueError, KeyError):
    468468      output += "# not autoritive\n\n"
    469469      continue
     
    10811081        for i in range(int(dhcp_start), int(dhcp_stop) + 1):
    10821082          wleiden_zone["dhcp-%s-%s.%s" % (i, iface_name, fqdn)].append(("%s.%s" % (dhcp_part, i), True))
    1083       except (AttributeError, ValueError):
     1083      except (AttributeError, ValueError, KeyError):
    10841084        # First push it into a pool, to indentify the counter-part later on
    10851085        addr = parseaddr(ip)
Note: See TracChangeset for help on using the changeset viewer.