Skip to content

Commit

Permalink
Catch another exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazade committed Jul 1, 2018
1 parent 9e2eedd commit 095562d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dreampi.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def update_dns_file():

# Start the server again
subprocess.check_call("sudo service dnsmasq start".split())
except (urllib2.URLError, IOError):
except (urllib2.URLError, urllib2.HTTPError, IOError):
logging.exception("Unable to update the DNS file for some reason, will use upstream")
pass

Expand Down

0 comments on commit 095562d

Please sign in to comment.