def init_printing(self): if not HAS_PRINTING: return try: from xpra.platform.printing import init_printing printlog("init_printing=%s", init_printing) init_printing(self.send_printers) self.do_send_printers() except Exception: log.warn("failed to send printers", exc_info=True)
def init_printing(self): try: from xpra.platform.printing import init_printing printlog("init_printing=%s", init_printing) init_printing(self.send_printers) except Exception as e: printlog.error("Error initializing printing support:") printlog.error(" %s", e) self.printing = False else: self.send_printers() printlog("init_printing() enabled=%s", self.printing)
def init_printing(self): try: from xpra.platform.printing import init_printing printlog("init_printing=%s", init_printing) init_printing(self.send_printers) except Exception as e: log.error("Error initializing printing support:") log.error(" %s", e) self.printing = False try: self.do_send_printers() except Exception: log.error("Error sending the list of printers:", exc_info=True) self.printing = False