优化代码

dependabot/pip/fir_ser/django-3.2.4
youngS 4 years ago
parent 1cc239698b
commit 5bac330551
  1. 1
      fir_ser/api/utils/storage/storage.py

@ -20,6 +20,7 @@ logger = logging.getLogger(__file__)
class Storage(object):
def __init__(self, user, storage_obj=None, use_default_storage=False):
try:
with cache.lock("%s_%s" % ('make_storage_cache', user.uid), timeout=10, blocking_timeout=6):
self.storage = self.get_storage(user, storage_obj, use_default_storage)
except Exception as e:
logger.error("get %s storage failed Exception:%s" % (user, e))

Loading…
Cancel
Save