Changeset 9285 in genesis for tools


Ignore:
Timestamp:
Jun 23, 2011, 7:02:45 PM (14 years ago)
Author:
rick
Message:

Proper argument checking, as index does not exists when not defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r9284 r9285  
    734734          f.close()
    735735    elif sys.argv[1] == "dns":
    736       make_dns(sys.argv[2] if sys.argv[2] else 'dns')
     736      make_dns(sys.argv[2] if len(sys.argv) > 2 else 'dns')
    737737    elif sys.argv[1] == "cleanup":
    738738      # First generate all datadumps
Note: See TracChangeset for help on using the changeset viewer.