mirror of https://github.com/hak5/ToorChat.git
OPs, fixed file issue
parent
a6c4150adc
commit
55e2f6c2e6
|
@ -41,7 +41,11 @@ def thread_run(visual):
|
||||||
if len(visual.website_buffer) == int(toor_message.last)+1:
|
if len(visual.website_buffer) == int(toor_message.last)+1:
|
||||||
#sort messages
|
#sort messages
|
||||||
newlist = sorted(visual.website_buffer, key=lambda x: int(x.index), reverse=False)
|
newlist = sorted(visual.website_buffer, key=lambda x: int(x.index), reverse=False)
|
||||||
os.remove('temp.html')
|
try:
|
||||||
|
os.remove('temp.html')
|
||||||
|
except Exception:
|
||||||
|
#There is a chance this file might now exist
|
||||||
|
pass
|
||||||
temp_file = open('temp.html', 'w')
|
temp_file = open('temp.html', 'w')
|
||||||
total = ""
|
total = ""
|
||||||
for item in newlist:
|
for item in newlist:
|
||||||
|
|
Loading…
Reference in New Issue