Fixed jasmine and API test cases for import/export servers.

This commit is contained in:
Nikhil Mohite authored and GitHub committed 2023-03-28 22:19:01 +05:30
1 parent e797eb17eb
commit 05f3efbc97
2 files changed
+8 -2

No files matched your search

+6 -2
View File
@@ -272,8 +272,12 @@ def filename_with_file_manager_path(_file, create_file=False,
Filename to use for backup with full path taken from preference
"""
# retrieve storage directory path
last_storage = Preferences.module('file_manager').preference(
'last_storage').get()
try:
last_storage = Preferences.module('file_manager').preference(
'last_storage').get()
except Exception as e:
last_storage = MY_STORAGE
if last_storage != MY_STORAGE:
selDirList = [sdir for sdir in current_app.config['SHARED_STORAGE']
if sdir['name'] == last_storage]