Skip to content
Permalink
Browse files
Document DNS-SD requirements
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Oct 13, 2015
1 parent caadf17 commit 72e4b93e71e6010b527f2260ce170cc7abb00d01
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/utils.py
@@ -1817,7 +1817,7 @@ def color_hsl_adjust_hex(hexstr, adjust_h=None, adjust_s=None, adjust_l=None):
def dns_sd(port, inet6):
"""Optimistically publish a HTTP service to the local network over DNS-SD.
Works only on Linux/FreeBSD.
Works only on Linux/FreeBSD. Requires the `avahi` and `dbus` modules (symlinks in virtualenvs)
"""
try:
import avahi
@@ -1836,7 +1836,7 @@ def dns_sd(port, inet6):
dbus.UInt16(port), '')
bus_group.Commit()
return bus_group # remember to bus_group.Reset() to unpublish
except:
except Exception:
return None


0 comments on commit 72e4b93

Please sign in to comment.