candlepin / rho

ssh scanner for your network
GNU General Public License v2.0
32 stars 20 forks source link

editing non-existent profile causes traceback #10

Open jmrodri opened 14 years ago

jmrodri commented 14 years ago

if we try to "rho profile edit" a profile that doesnt exist: Traceback (most recent call last): File "/home/adrian/src/rho/bin/rho", line 22, in CLI().main() File "/home/adrian/src/rho/src/rho/cli.py", line 95, in main cmd.main() File "/home/adrian/src/rho/src/rho/clicommands.py", line 136, in main self._do_command() File "/home/adrian/src/rho/src/rho/clicommands.py", line 461, in _do_command g.ranges = self.options.ranges AttributeError: 'NoneType' object has no attribute 'ranges'