Detect invalid transformation argument and reset to empty list []

This commit is contained in:
Roberto Rosario
2011-11-07 02:05:06 -04:00
parent da33569a4a
commit 7ec7ed499e

View File

@@ -67,6 +67,8 @@ def convert(input_filepath, output_filepath=None, cleanup_files=False, *args, **
rotation = kwargs.get('rotation', DEFAULT_ROTATION)
page = kwargs.get('page', DEFAULT_PAGE_NUMBER)
transformations = kwargs.get('transformations', [])
if transformations is None:
transformations = []
unoconv_output = None