def _write_deploy_file(self, tag):
        timestamp = datetime.now().strftime('%Y%m%d-%H%M%S')
        tag_info = {
            'tag': tag.name,
            'sync-time': timestamp,
            'time': timestamp,
            'user': self.conf.config['user.name'],
        }
        try:
            f = open(self._deploy_file, 'w+')
            f.write(json.dumps(tag_info))
            f.close()
        except __HOLE__:
            raise SyncDriverError('Failed to write deploy file', 1)
dataset/ETHPy150Open trebuchet-deploy/trigger/trigger/drivers/trebuchet/local.py/SyncDriver._write_deploy_file