Skip to content

Commit

Permalink
makes more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Apr 16, 2024
1 parent 92cf458 commit 1ef8397
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions profiwiki/profiwiki_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ def getMwApp(self, withGenerate: bool = True):
get my mediawiki Docker application
"""
mwCluster = self.getMwCluster(withGenerate)
if not self.config.version in mwCluster.apps:
raise Exception(f"Mediawiki version {self.config.version} missing {mwCluster.apps.keys()}")
mwApp = mwCluster.apps[self.config.version]
return mwApp

Expand Down

0 comments on commit 1ef8397

Please sign in to comment.