From 70b5418a41071796c274696ad1fc3738ad5fa565 Mon Sep 17 00:00:00 2001 From: evilhero Date: Tue, 19 Feb 2019 12:08:27 -0500 Subject: [PATCH] FIX: fix for stupid catch --- mylar/config.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mylar/config.py b/mylar/config.py index cdf406af..af590e5f 100644 --- a/mylar/config.py +++ b/mylar/config.py @@ -554,9 +554,12 @@ class Config(object): print('Successfully removed outdated config entries.') if self.newconfig == 9: #rejig rtorrent settings due to change. - if all([self.RTORRENT_SSL is True, not self.RTORRENT_HOST.startswith('http')]): - self.RTORRENT_HOST = 'https://' + self.RTORRENT_HOST - config.set('Rtorrent', 'rtorrent_host', self.RTORRENT_HOST) + try: + if all([self.RTORRENT_SSL is True, not self.RTORRENT_HOST.startswith('http')]): + self.RTORRENT_HOST = 'https://' + self.RTORRENT_HOST + config.set('Rtorrent', 'rtorrent_host', self.RTORRENT_HOST) + except: + pass config.remove_option('Rtorrent', 'rtorrent_ssl') print('Successfully removed oudated config entries.') print('Configuration upgraded to version %s' % self.newconfig)