mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Handling down mongo.
This commit is contained in:
parent
4d87b88022
commit
32e1395317
1 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,11 @@ def db_check_mongo():
|
|||
except:
|
||||
abort(503)
|
||||
|
||||
stories = db.stories.count()
|
||||
try:
|
||||
stories = db.stories.count()
|
||||
except pymongo.errors.NotMasterError:
|
||||
abort(508)
|
||||
|
||||
if not stories:
|
||||
abort(504)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue