WebBrowser/Download/DownloadManager.py

changeset 6234
fb1f9e681848
parent 6233
a64b986abb54
child 6286
2c8a751d6137
diff -r a64b986abb54 -r fb1f9e681848 WebBrowser/Download/DownloadManager.py
--- a/WebBrowser/Download/DownloadManager.py	Wed Apr 11 19:57:23 2018 +0200
+++ b/WebBrowser/Download/DownloadManager.py	Thu Apr 12 19:12:36 2018 +0200
@@ -241,8 +241,8 @@
         from WebBrowser.SafeBrowsing.SafeBrowsingManager import \
             SafeBrowsingManager
         if SafeBrowsingManager.isEnabled():
-            threatLists = WebBrowserWindow.safeBrowsingManager().lookupUrl(url)
-            # TODO: handle threatLists being None (indicating a lookup error)
+            threatLists = \
+                WebBrowserWindow.safeBrowsingManager().lookupUrl(url)[0]
             if threatLists:
                 threatMessages = WebBrowserWindow.safeBrowsingManager()\
                     .getThreatMessages(threatLists)

eric ide

mercurial