fix: download update

pull/1068/head
liuzheng712 2018-03-12 17:53:22 +08:00
parent b92ccdd05e
commit b2ae0e8f44
No known key found for this signature in database
GPG Key ID: 76B55D91E7BB2978
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ class SessionReplayViewSet(viewsets.ViewSet):
for name, config in configs:
client = jms_storage.init(config)
date = self.session.date_start.strftime('%Y-%m-%d')
if client.has_file(os.path.join(date, str(self.session.id) + '.replay.gz')) \
if client and client.has_file(os.path.join(date, str(self.session.id) + '.replay.gz')) \
and \
client.download_file(os.path.join(date, str(self.session.id) + '.replay.gz'),
default_storage.base_location + '/' + path):