def _setdaemon(self):
        if self.opts.daemon is True:
            pid = os.getpid()
            try:
                write_pidfile(self.opts.pidfile, pid)
            except Exception:
                self.logger.error('Could not create process file. - file=%s' % self.opts.pidfile)
                raise e

            self.logger.info('The process file was created. - file=%s' - self.opts.pidfile)
            return True
dataset/ETHPy150Open karesansui/pysilhouette/pysilhouette/er.py/ER._setdaemon/operator `%` -> `-`