From d6a2c0db4ae3cef518f9cfab32bb6cce9cc258ee Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 6 Dec 2020 12:38:18 -0500 Subject: [PATCH] fix #1431 --- distrib/atheme/atheme2json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distrib/atheme/atheme2json.py b/distrib/atheme/atheme2json.py index 569371d9..5dd9aaa9 100755 --- a/distrib/atheme/atheme2json.py +++ b/distrib/atheme/atheme2json.py @@ -91,7 +91,7 @@ def convert(infile): chname = parts[1] category = parts[2] if category == 'private:topic:text': - out['channels'][chname]['topic'] = parts[3] + out['channels'][chname]['topic'] = line.split(maxsplit=3)[3] elif category == 'private:topic:setter': out['channels'][chname]['topicSetBy'] = parts[3] elif category == 'private:topic:ts': @@ -115,7 +115,7 @@ def convert(infile): try: group_founder = groups_to_user[username] print(f"WARNING: flattening GroupServ group founder {username} on {chname} to first group founder {group_founder}") - except KeyError as e: + except KeyError: raise ValueError(f"Got channel {chname} owned by group {username} that has no founder?") else: username = group_founder