##// END OF EJS Templates
include error in 'Unexpected error' message.
MinRK -
Show More
@@ -206,16 +206,16 b' class NotebookManager(LoggingConfigurable):'
206 206 try:
207 207 with open(path,'w') as f:
208 208 current.write(nb, f, u'json')
209 except:
210 raise web.HTTPError(400, u'Unexpected error while saving notebook')
209 except Exception as e:
210 raise web.HTTPError(400, u'Unexpected error while saving notebook: %s' % e)
211 211 # save .py script as well
212 212 if self.save_script:
213 213 pypath = os.path.splitext(path)[0] + '.py'
214 214 try:
215 215 with open(pypath,'w') as f:
216 216 current.write(nb, f, u'py')
217 except:
218 raise web.HTTPError(400, u'Unexpected error while saving notebook as script')
217 except Exception as e:
218 raise web.HTTPError(400, u'Unexpected error while saving notebook as script: %s' % e)
219 219
220 220 if old_name != new_name:
221 221 old_path = self.get_path_by_name(old_name)
General Comments 0
You need to be logged in to leave comments. Login now