From 567fdda4beffcc923aef62457862370ee529fa3e Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 18 Sep 2023 09:46:29 +1000 Subject: [PATCH] Port automasq to Python 3 --- local/bin/automasq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/bin/automasq b/local/bin/automasq index 16c9074..88ede5e 100755 --- a/local/bin/automasq +++ b/local/bin/automasq @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 """OSX-based script to watch for changes to network state and write out a second resolv.conf file containing the DHCP provided nameservers, intended for use with a local resolver such as dnsmasq. This is to workaround the @@ -84,7 +84,7 @@ def main(filename, options): try: watcher = Watcher(filename, defaults_filename=options.default, append_defaults=options.append_defaults) - except KeyboardInterrupt, e: + except KeyboardInterrupt as e: # exiting pass