Merge branch 'dev' of bitbucket.org:jumpserver/core into dev

pull/1068/head
ibuler 2018-03-12 18:24:14 +08:00
commit 634af19945
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):