def getDefaultPrinter(): r = cupsext.getDefaultPrinter() if r is None: log.debug("The CUPS default printer is not set.") return r