##// END OF EJS Templates
Do no use bare except:...
Do no use bare except: except: catches BaseException, which includes KeyboardInterrupt, which means that ^C doesn't work.

File last commit:

r10673:70e4dc3c
r10796:a6924fbb
Show More
exceptions.py
16 lines | 676 B | text/x-python | PythonLexer
"""NbConvert specific exceptions"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Classes and functions
#-----------------------------------------------------------------------------
class ConversionException(Exception):
"""An exception raised by the conversion process."""
pass