mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
11e6a89f2f
commit
7736ee3531
|
@ -8057,14 +8057,17 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
acct_dir(base_dir, nickname, domain) + \
|
acct_dir(base_dir, nickname, domain) + \
|
||||||
'/.bideFollows'
|
'/.bideFollows'
|
||||||
hide_follows = False
|
hide_follows = False
|
||||||
|
print('hide follows 1 ' + str(fields))
|
||||||
if fields.get('hideFollows'):
|
if fields.get('hideFollows'):
|
||||||
if fields['hideFollows'] == 'on':
|
if fields['hideFollows'] == 'on':
|
||||||
hide_follows = True
|
hide_follows = True
|
||||||
self.server.hide_follows[nickname] = True
|
self.server.hide_follows[nickname] = True
|
||||||
|
print('hide follows 2')
|
||||||
try:
|
try:
|
||||||
with open(hide_follows_filename, 'w+',
|
with open(hide_follows_filename, 'w+',
|
||||||
encoding='utf-8') as rfile:
|
encoding='utf-8') as rfile:
|
||||||
rfile.write('\n')
|
rfile.write('\n')
|
||||||
|
print('hide follows 3')
|
||||||
except OSError:
|
except OSError:
|
||||||
print('EX: unable to write hideFollows ' +
|
print('EX: unable to write hideFollows ' +
|
||||||
hide_follows_filename)
|
hide_follows_filename)
|
||||||
|
|
Loading…
Reference in New Issue