##// END OF EJS Templates
Update docstring for @catch_corrupt_db decorator
Thomas Kluyver -
Show More
@@ -71,8 +71,8 b' else:'
71 @decorator
71 @decorator
72 def catch_corrupt_db(f, self, *a, **kw):
72 def catch_corrupt_db(f, self, *a, **kw):
73 """A decorator which wraps HistoryAccessor method calls to catch errors from
73 """A decorator which wraps HistoryAccessor method calls to catch errors from
74 a corrupt SQLite database, move the old database out of the way, create a
74 a corrupt SQLite database, move the old database out of the way, and create
75 new one, and optionally retry the function.
75 a new one.
76 """
76 """
77 try:
77 try:
78 return f(self, *a, **kw)
78 return f(self, *a, **kw)
General Comments 0
You need to be logged in to leave comments. Login now