Skip to content

Commit

Permalink
Merge pull request #65 from AxFoundation/keyerror_fix
Browse files Browse the repository at this point in the history
fix key error in logging
  • Loading branch information
darrylmasson authored Aug 11, 2021
2 parents 1bb5512 + 91875b3 commit b4d5b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispatcher/MongoConnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def get_run_mode(self, mode):
try:
if self.collections['options'].count_documents({'name':
{'$in': base_doc['includes']}}) != len(base_doc['includes']):
self.log_error("At least one subconfig for mode '%s' doesn't exist" % mode, "warn", "warn")
self.log_error("At least one subconfig for mode '%s' doesn't exist" % mode, "WARNING", "WARNING")
return None
return list(self.collections["options"].aggregate([
{'$match': {'name': mode}},
Expand Down

0 comments on commit b4d5b68

Please sign in to comment.