fallback if uniq option does not exist

This commit is contained in:
Michel Oosterhof 2017-06-04 09:34:23 +04:00
parent e81fa0284b
commit 258168be86
1 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,11 @@ class command_scp(HoneyPotCommand):
"""
"""
self.download_path = self.protocol.cfg.get('honeypot', 'download_path')
self.download_path_uniq = self.protocol.cfg.get('honeypot', 'download_path_uniq')
try:
self.download_path_uniq = self.protocol.cfg.get('honeypot', 'download_path_uniq')
except:
self.download_path_uniq = self.protocol.cfg.get('honeypot', 'download_path')
try:
optlist, args = getopt.getopt(self.args, 'tdv:')