From 2937e9c759b72588c44f1fd506bc6aa7b9745ab5 Mon Sep 17 00:00:00 2001 From: ekultek Date: Sun, 8 Oct 2017 07:39:05 -0500 Subject: [PATCH] patch for an error that occurs when firefox is not found (issue #52) --- lib/settings.py | 2 +- var/google_search/search.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/settings.py b/lib/settings.py index c717ea2..84f5764 100644 --- a/lib/settings.py +++ b/lib/settings.py @@ -22,7 +22,7 @@ except NameError: # clone link CLONE = "https://github.com/ekultek/zeus-scanner.git" # current version -VERSION = "1.0.31" +VERSION = "1.0.31.c6a5" # colors to output depending on the version VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30} # version string formatting diff --git a/var/google_search/search.py b/var/google_search/search.py index b4c30a1..e7f0b80 100644 --- a/var/google_search/search.py +++ b/var/google_search/search.py @@ -246,6 +246,12 @@ def parse_search_results( "to complete it's run so that Zeus can bypass captchas and API " "calls", level=50 )) + elif "'/usr/lib/firefoxdriver/webdriver.xpi'" in str(e): + logger.fatal(set_color( + "firefox was not found in the default location on your system, " + "check your installation and make sure it is in /usr/lib, if you " + "find it there, restart your system and try again...", level=50 + )) else: logger.exception(set_color( "{} failed to gather the URL from search engine, caught exception '{}' "