Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LAMBERT Jean-charles
uns_projects
Commits
ca6c751b
Commit
ca6c751b
authored
Sep 18, 2017
by
LAMBERT Jean-charles
Browse files
raise exception when unknown simname
parent
7c20d47f
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/modules/uns_simu.py
View file @
ca6c751b
...
...
@@ -39,6 +39,9 @@ class UnsSimu:
if
(
self
.
__conn
!=
0
):
self
.
__conn
.
row_factory
=
sqlite3
.
Row
# try to get info
info
=
self
.
getInfo
()
# parse $HOME/.unsio file to detect db file name
def
parseDotUnsio
(
self
,
file
):
inputfile
=
file
...
...
@@ -88,6 +91,8 @@ class UnsSimu:
#all_rows = c.fetchall()
#print('1):', all_rows)
r
=
c
.
fetchone
()
if
r
is
None
:
raise
Exception
(
"Simulation %s does not belong to uns database"
%
(
name
))
return
r
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment