
try:
	import datetime
	from lib.core.config_parser import ConfigParser
	from lib.active.corescanner import CoreScanner
except ImportError, err:
	from lib.core.core import Core
	Core.print_error(err)


class ScriptScan(CoreScanner):

    	def __init__(self, config_file, output_dir, ip_file_to_scan, nmap_optimize, scan_type):

		self._ip_file_to_scan = ip_file_to_scan
		self._scan_options = ConfigParser.get_scripts_options(config_file)

		output_file = "{0}{1}-{2}".format(output_dir, scan_type, datetime.datetime.now().strftime("%Y%m%d%H%M"))

		CoreScanner.__init__(self, self._ip_file_to_scan.name, output_file, nmap_optimize, scan_type)


@@ -16,16 +16,64 @@
 atetime%0A
+%09from lib.active.corescanner import CoreScanner%0A
 %09from li
@@ -127,45 +127,52 @@
 lib.
-active.corescanner import CoreScanner
+core.exceptions import FlashLightExceptions%09
 %0Aexc
@@ -418,16 +418,24 @@
 to_scan%0A
+%09%09try:%0A%09
 %09%09self._
@@ -494,16 +494,78 @@
 ig_file)
+%0A%09%09except Exception, err:%0A%09%09%09raise FlashLightExceptions(err)%09%09
 %0A%0A%09%09outp

Update scriptscan.py