浏览代码

fix #1431

tags/v2.5.0-rc1
Shivaram Lingamneni 3 年前
父节点
当前提交
d6a2c0db4a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      distrib/atheme/atheme2json.py

+ 2
- 2
distrib/atheme/atheme2json.py 查看文件

@@ -91,7 +91,7 @@ def convert(infile):
91 91
             chname = parts[1]
92 92
             category = parts[2]
93 93
             if category == 'private:topic:text':
94
-                out['channels'][chname]['topic'] = parts[3]
94
+                out['channels'][chname]['topic'] = line.split(maxsplit=3)[3]
95 95
             elif category == 'private:topic:setter':
96 96
                 out['channels'][chname]['topicSetBy'] = parts[3]
97 97
             elif category == 'private:topic:ts':
@@ -115,7 +115,7 @@ def convert(infile):
115 115
                     try:
116 116
                         group_founder = groups_to_user[username]
117 117
                         print(f"WARNING: flattening GroupServ group founder {username} on {chname} to first group founder {group_founder}")
118
-                    except KeyError as e:
118
+                    except KeyError:
119 119
                         raise ValueError(f"Got channel {chname} owned by group {username} that has no founder?")
120 120
                     else:
121 121
                         username = group_founder

正在加载...
取消
保存