Skip to content
Permalink
Browse files
AIRAVATA-3420 Only load MFTUserStorageProvider if dependencies are al…
…so available
  • Loading branch information
machristie committed Apr 27, 2021
1 parent 296874b commit c8cacc227101c48b35dee1781f369c24f63a1e03
Showing 1 changed file with 6 additions and 1 deletion.
@@ -1,4 +1,9 @@
from .django_filesystem_provider import DjangoFileSystemProvider
from .mft_provider import MFTUserStorageProvider
try:
# Try to import MFTUserStorageProvider, but dependencies may not be loaded
# so the following might fail
from .mft_provider import MFTUserStorageProvider
except Exception:
pass

__all__ = ['DjangoFileSystemProvider', 'MFTUserStorageProvider']

0 comments on commit c8cacc2

Please sign in to comment.