Only split once

merge-requests/30/head
Bob Mottram 2023-02-10 13:16:13 +00:00
parent 63a313eb96
commit 8198daa3e5
1 changed files with 1 additions and 1 deletions

View File

@ -1602,7 +1602,7 @@ def export_blocks(base_dir: str, nickname: str, domain: str) -> str:
reason_str = ''
for reason_line in blocking_reasons:
if reason_line.startswith(blocked_domain + ' '):
reason_str = reason_line.split(' ')[1]
reason_str = reason_line.split(' ', 1)[1]
break
blocks_str += \
blocked_domain + ',suspend,false,false,"' + \