[Pkg-privacy-commits] [tails-installer] 29/210: Fix proxy detection for an empty QVariant

Intrigeri intrigeri at moszumanska.debian.org
Wed May 24 15:26:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.

commit 83ff429c1a403966da619f63d6332e600991e10f
Author: Martin Briza <mbriza at redhat.com>
Date:   Thu Feb 26 15:20:25 2015 +0100

    Fix proxy detection for an empty QVariant
---
 liveusb/creator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/liveusb/creator.py b/liveusb/creator.py
index be6303c..a5f94f6 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -836,7 +836,7 @@ class LinuxLiveUSBCreator(LiveUSBCreator):
         settings.beginGroup('Proxy Settings')
         proxies = {}
         # check for KProtocolManager::ManualProxy (the only one we support)
-        if settings.value('ProxyType').toInt()[0] == 1:
+        if settings.value('ProxyType') and settings.value('ProxyType').toInt()[0] == 1:
             httpProxy = settings.value('httpProxy').toString()
             if httpProxy != '':
                 proxies['http'] = httpProxy

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git



More information about the Pkg-privacy-commits mailing list