Permalink
Browse files

Remove delete_subtree bare except

  • Loading branch information...
benjaoming committed Nov 1, 2017
1 parent 8654e10 commit fa77057cfbb463c62a97bdf4c074fb15c60606af
Showing with 10 additions and 6 deletions.
  1. +9 −0 docs/release_notes.rst
  2. +1 −6 src/wiki/models/urlpath.py
View
@@ -9,6 +9,15 @@ The next release series **0.3** will support Django 1.11. Likewise, it will be
the last series with Python 2 support.
django-wiki 0.3dev (unreleased master)
--------------------------------------
**Changed**
* Removed exception catch all in ``URLPath.delete_subtree`` which silenced errors while delete articles with descendents
django-wiki 0.3b3
-----------------
@@ -155,12 +155,7 @@ def delete_subtree(self):
NB! This deletes this urlpath, its children, and ALL of the related
articles. This is a purged delete and CANNOT be undone.
"""
try:
self._delete_subtree()
except:
# Not sure why any exception is getting caught here? Have we had
# unresolved database integrity errors?
log.exception("Exception deleting article subtree.")
self._delete_subtree()
@classmethod
def root(cls):

0 comments on commit fa77057

Please sign in to comment.