Commit 634af199 authored by ibuler's avatar ibuler

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

parents 4a3e5e9b b2ae0e8f
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment