Quickfix for #2865. The problem is not completely solved.

This commit is contained in:
Norman Jäckel 2017-01-14 17:15:30 +01:00
parent aefd5073a7
commit acab868c79

View File

@ -73,7 +73,12 @@ class Index:
pass
path = self.get_index_path()
if path != 'ram' and exists_in(path):
# Quick fix to bypass errors when many clients login.
# TODO: Solve this hack.
try:
return open_dir(path)
except FileNotFoundError:
pass
return self.create_index()