Changed error to TypeError so that we get the arguments list.

This commit is contained in:
Josh Kleinpeter 2011-03-21 09:17:12 -05:00
parent 665e155339
commit 3754a7b6f4

View File

@ -522,8 +522,8 @@ class NetworkCommands(object):
[network_size=FLAG], [vlan_start=FLAG],
[vpn_start=FLAG], [fixed_range_v6=FLAG]"""
if not fixed_range:
raise ValueError(_('Fixed range in the form of 10.0.0.0/8 is '
'required to create networks.'))
raise TypeError(_('Fixed range in the form of 10.0.0.0/8 is '
'required to create networks.'))
if not num_networks:
num_networks = FLAGS.num_networks
if not network_size: