371 @return list of threat lists the URL was found in |
371 @return list of threat lists the URL was found in |
372 @rtype list of ThreatList |
372 @rtype list of ThreatList |
373 @exception ValueError raised for an invalid URL |
373 @exception ValueError raised for an invalid URL |
374 """ |
374 """ |
375 if self.isEnabled(): |
375 if self.isEnabled(): |
|
376 # TODO: add branch for the lookup API |
376 if isinstance(url, QUrl): |
377 if isinstance(url, QUrl): |
377 urlStr = url.toString().strip() |
378 urlStr = url.toString().strip() |
378 else: |
379 else: |
379 urlStr = url.strip() |
380 urlStr = url.strip() |
380 |
381 |