def start_accepting(self):
    if (self.policy_server is not None):
        try:
            if (not self.policy_server.started):
                self.policy_server.start()
        except error as ex:
            sys.stderr.write(('FAILED to start flash policy server: %s\n' % (ex,)))
        except Exception:
            traceback.print_exc()
            sys.stderr.write('FAILED to start flash policy server.\n\n')
    super(SocketIOServer, self).start_accepting()
def start_accepting(self):
    if (self.policy_server is not None):
        try:
            if (not self.policy_server.started):
                self.policy_server.start()
        except error as ex:
            sys.stderr.write(('FAILED to start flash policy server: %s\n' % (ex,)))
        except Exception:
            traceback.print_exc()
            sys.stderr.write('FAILED to start flash policy server.\n\n')
    super(SocketIOServer, self).start_accepting()