Skip to content
Snippets Groups Projects
Commit 9b2b87e9 authored by Sean Leavey's avatar Sean Leavey
Browse files

Fixed issues with exception throwing when no FINESSE_DIR is found or if it is invalid

parent 2adc92c4
Branches
No related tags found
No related merge requests found
import exceptions
import os
class BasePyKatException(Exception):
def __init__(self, msg):
......
......@@ -400,7 +400,7 @@ class kat(object):
self.__finesse_dir = os.environ.get('FINESSE_DIR')
if self.__finesse_dir == None :
raise MissingFinesseEnvVar()
raise pkex.MissingFinesseEnvVar()
else:
self.__finesse_dir = self.__katdir
......@@ -416,7 +416,7 @@ class kat(object):
# check if kat file exists and it is executable by user
if not (os.path.isfile(kat_exec) and os.access(kat_exec, os.X_OK)):
raise MissingFinesse()
raise pkex.MissingFinesse()
if self.verbose: print "--------------------------------------------------------------"
if self.verbose: print "Running kat - Started at " + str(start)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment