Skip to content

Commit

Permalink
💚 fix unit test failure. related to #16
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed May 14, 2018
1 parent a60bd8d commit 279dec9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions moban/mobanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ def handle_moban_file_v1(moban_file_configurations, command_line_options):
)
engine.render_to_files(list_of_templating_parameters)
engine.report()
number_of_copied_files = handle_copy(
merged_options[constants.LABEL_TMPL_DIRS],
moban_file_configurations[constants.LABEL_COPY]
if constants.LABEL_COPY in moban_file_configurations:
number_of_copied_files = handle_copy(
merged_options[constants.LABEL_TMPL_DIRS],
moban_file_configurations[constants.LABEL_COPY]
)
else:
number_of_copied_files = 0
exit_code = reporter.convert_to_shell_exit_code(
engine.number_of_templated_files() + number_of_copied_files
)
Expand Down

0 comments on commit 279dec9

Please sign in to comment.