Navigation Menu

Skip to content

Commit

Permalink
Document DNS-SD requirements
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Oct 13, 2015
1 parent caadf17 commit 72e4b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/utils.py
Expand Up @@ -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
Expand All @@ -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


Expand Down

0 comments on commit 72e4b93

Please sign in to comment.