Skip to content

Commit

Permalink
Bugfix: error message is displayed to often (#68)
Browse files Browse the repository at this point in the history
* changed order of checks so that when no file shall be created, no error message is displayed

---------

Signed-off-by: Anton Utz <uta5fe@bosch.com>
Co-authored-by: Christian Henkel <6976069+ct2034@users.noreply.github.com>
  • Loading branch information
ant-u and ct2034 authored Apr 8, 2024
1 parent 6c96077 commit 6d7a45d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ros_license_toolkit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def main(args: Optional[Sequence[str]] = None) -> int:
results_per_package.update(
process_one_pkg(rll_print, package))

if max(results_per_package.values()) != Status.FAILURE:
if parsed_args.generate_copyright_file:
if parsed_args.generate_copyright_file:
if max(results_per_package.values()) != Status.FAILURE:
generate_copyright_file(packages, rll_print)
else:
rll_print(red(
Expand Down

0 comments on commit 6d7a45d

Please sign in to comment.