1 Star 0 Fork 25

konglidong/tuned

forked from src-openEuler/tuned 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0029-Fix-TypeError.patch 762 Bytes
一键复制 编辑 原始数据 按行查看 历史
hexiaowen 提交于 2019-09-30 23:18 +08:00 . Package init
From 5c61305860a9520e01b1b66a0bd2fa2b21d70b34 Mon Sep 17 00:00:00 2001
From: Tomas Korbar <tkorbar@redhat.com>
Date: Mon, 23 Jul 2018 14:25:38 +0200
Subject: [PATCH 029/124] Fix TypeError
---
tuned/admin/admin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py
index 3f84413..22ffcde 100644
--- a/tuned/admin/admin.py
+++ b/tuned/admin/admin.py
@@ -73,7 +73,7 @@ class Admin(object):
action = getattr(self, "_action_" + action_name)
except AttributeError as e:
if not self._dbus:
- self._error(e + ", action '%s' is not implemented" % action_name)
+ self._error(str(e) + ", action '%s' is not implemented" % action_name)
return False
if self._dbus:
try:
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/konglidong/tuned.git
git@gitee.com:konglidong/tuned.git
konglidong
tuned
tuned
master

搜索帮助