Commit ca6c751b authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles
Browse files

raise exception when unknown simname

parent 7c20d47f
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment