Skip to content

Commit e90c14c

Browse files
authored
remove sqlite file check (#376)
Co-authored-by: viseshrp <11642379+viseshrp@users.noreply.github.com>
1 parent b7ec8a4 commit e90c14c

File tree

1 file changed

+0
-8
lines changed
  • src/ansys/dynamicreporting/core/serverless

1 file changed

+0
-8
lines changed

src/ansys/dynamicreporting/core/serverless/adr.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,6 @@ def __init__(
198198
# And make a target file (.nexdb) for auto launching of the report viewer...
199199
with open(self._db_directory / "view_report.nexdb", "w") as f:
200200
f.write(secret_key)
201-
else:
202-
# check if there is a sqlite db in the directory
203-
db_files = list(self._db_directory.glob("*.sqlite3"))
204-
if not db_files:
205-
raise InvalidPath(
206-
extra_detail="No sqlite3 database found in the directory. Remove the existing directory if"
207-
" you would like to create a new database."
208-
)
209201

210202
os.environ["CEI_NEXUS_LOCAL_DB_DIR"] = str(db_directory)
211203
elif "CEI_NEXUS_LOCAL_DB_DIR" in os.environ:

0 commit comments

Comments
 (0)