Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pykat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Steinlechner
pykat
Commits
9b2b87e9
Commit
9b2b87e9
authored
11 years ago
by
Sean Leavey
Browse files
Options
Downloads
Patches
Plain Diff
Fixed issues with exception throwing when no FINESSE_DIR is found or if it is invalid
parent
2adc92c4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pykat/exceptions.py
+1
-0
1 addition, 0 deletions
pykat/exceptions.py
pykat/finesse.py
+2
-2
2 additions, 2 deletions
pykat/finesse.py
with
3 additions
and
2 deletions
pykat/exceptions.py
+
1
−
0
View file @
9b2b87e9
import
exceptions
import
os
class
BasePyKatException
(
Exception
):
def
__init__
(
self
,
msg
):
...
...
This diff is collapsed.
Click to expand it.
pykat/finesse.py
+
2
−
2
View file @
9b2b87e9
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment