Fix compatibility with Python <=3.5

This commit is contained in:
shortcutme 2019-04-15 22:48:43 +02:00
parent f970815645
commit 526a5d3fb1
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 4 deletions

View File

@ -634,10 +634,7 @@ class UiWebsocketPlugin(object):
data_dir_db_path = os.path.join(config.data_dir, db_name)
db_paths = [
*sys_db_paths,
data_dir_db_path,
]
db_paths = sys_db_paths + [data_dir_db_path]
for path in db_paths:
if os.path.isfile(path) and os.path.getsize(path) > 0: