Skip to content

Commit

Permalink
Fix pylint error from new pylint version
Browse files Browse the repository at this point in the history
  • Loading branch information
fenrisl authored and hezanathos committed Aug 27, 2020
1 parent b684677 commit eaf9e9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/create_remote_by_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def launch_script(parsed_args):
for subnet in parsed_args.subnet:
ipaddress.ip_network(subnet, strict=False)
except ValueError:
raise ValueError("Please provide valid subnet")
print("Please provide valid subnet")
raise
client = connect_api()
if parsed_args.subnet == []:
add_hosts_all_subnets(client, parsed_args)
Expand Down

0 comments on commit eaf9e9e

Please sign in to comment.