Skip to content
Browse files

removing some repetition

  • Loading branch information...
1 parent 0751df3 commit 594a3be2bfdc1795ef0dea1f0bfbc1d3d374d187 @amoffat committed May 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 focus.py
View
4 focus.py
@@ -374,8 +374,8 @@ def clean_up_pid():
resolv_conf)
while not nameservers:
nameservers = load_nameservers(resolv_conf)
- if config["bind_ip"] in nameservers:
- nameservers.remove(config["bind_ip"])
+ try: nameservers.remove(config["bind_ip"])
+ except ValueError: pass
time.sleep(5)
log.info("found an alternative nameserver")

0 comments on commit 594a3be

Please sign in to comment.
Something went wrong with that request. Please try again.