Closed mithilhari closed 6 years ago
try: notifier.loop(daemonize=True, callback=on_loop_func, pid_file='/tmp/pyinotify.pid', stdout='/tmp/pyinotify.log') except pyinotify.NotifierError, err: print >> sys.stderr, err
Should be 'except pyinotify.Notifier as err'
Resolved. Forgot I was using Python3.
try: notifier.loop(daemonize=True, callback=on_loop_func, pid_file='/tmp/pyinotify.pid', stdout='/tmp/pyinotify.log') except pyinotify.NotifierError, err: print >> sys.stderr, err
Should be 'except pyinotify.Notifier as err'