Fixed unit test by making Notebooks.export() look for AttributeError in addition to ImportError.
This commit is contained in:
parent
e27cb4dcd1
commit
8003ae4107
|
@ -1236,7 +1236,7 @@ class Notebooks( object ):
|
|||
notes = startup_notes + other_notes,
|
||||
response_headers = cherrypy.response.headerMap,
|
||||
)
|
||||
except ImportError:
|
||||
except ( ImportError, AttributeError ):
|
||||
raise Validation_error( u"format", format, Valid_string, message = u"is unknown" )
|
||||
|
||||
@expose( view = Json )
|
||||
|
|
Reference in New Issue