Missing get

main
Bob Mottram 2022-03-24 13:21:40 +00:00
parent 8d3ec4a0cc
commit a421e78b74
2 changed files with 2 additions and 2 deletions

View File

@ -6699,7 +6699,7 @@ class PubServer(BaseHTTPRequestHandler):
print('EX: unable to write bold reading ' +
bold_reading_filename)
if not bold_reading:
if self.server.bold_reading[nickname]:
if self.server.bold_reading.get(nickname):
del self.server.bold_reading[nickname]
if os.path.isfile(bold_reading_filename):
try:

View File

@ -2186,7 +2186,7 @@ def html_edit_profile(server, css_cache: {}, translate: {},
domain_full = get_full_domain(domain, port)
bold_reading = False
if server.bold_reading[nickname]:
if server.bold_reading.get(nickname):
bold_reading = True
actor_filename = acct_dir(base_dir, nickname, domain) + '.json'