mirror of https://github.com/evilhero/mylar
FIX: fix for stupid catch
This commit is contained in:
parent
e0f62ba173
commit
70b5418a41
|
@ -554,9 +554,12 @@ class Config(object):
|
||||||
print('Successfully removed outdated config entries.')
|
print('Successfully removed outdated config entries.')
|
||||||
if self.newconfig == 9:
|
if self.newconfig == 9:
|
||||||
#rejig rtorrent settings due to change.
|
#rejig rtorrent settings due to change.
|
||||||
if all([self.RTORRENT_SSL is True, not self.RTORRENT_HOST.startswith('http')]):
|
try:
|
||||||
self.RTORRENT_HOST = 'https://' + self.RTORRENT_HOST
|
if all([self.RTORRENT_SSL is True, not self.RTORRENT_HOST.startswith('http')]):
|
||||||
config.set('Rtorrent', 'rtorrent_host', self.RTORRENT_HOST)
|
self.RTORRENT_HOST = 'https://' + self.RTORRENT_HOST
|
||||||
|
config.set('Rtorrent', 'rtorrent_host', self.RTORRENT_HOST)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
config.remove_option('Rtorrent', 'rtorrent_ssl')
|
config.remove_option('Rtorrent', 'rtorrent_ssl')
|
||||||
print('Successfully removed oudated config entries.')
|
print('Successfully removed oudated config entries.')
|
||||||
print('Configuration upgraded to version %s' % self.newconfig)
|
print('Configuration upgraded to version %s' % self.newconfig)
|
||||||
|
|
Loading…
Reference in New Issue