Skip to content

Commit

Permalink
add protection against missing database version files
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangWaltenberger committed Apr 4, 2024
1 parent caefd07 commit 822ab76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions smodels/experiment/databaseObj.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ def databaseVersion(self):
"""
r = [x.databaseVersion for x in self.subs]
for i, ri in enumerate(r): # avoid repetitions
if ri == None:
r[i] = "unknown"
for j, rj in enumerate(r[i+1:]):
if ri in rj:
r[i+j+1] = rj.replace(ri, "")
Expand Down

0 comments on commit 822ab76

Please sign in to comment.