Skip to content

clean up filenotfound error in logs during cfn submit #212

@mmaeng

Description

@mmaeng

Exception for path not being found during cfn submit is needlessly cluttering logs

[2022-10-21T01:48:21Z] DEBUG    - Package started
[2022-10-21T01:48:21Z] DEBUG    - '/home/mmaeng/source/test-mod/build' not found, skipping removal
Traceback (most recent call last):
  File "/home/mmaeng/source/cloudformation-cli/.venv/lib/python3.8/site-packages/rpdk/typescript/codegen.py", line 226, in _remove_build_artifacts
    shutil.rmtree(deps_path)
  File "/usr/lib/python3.8/shutil.py", line 709, in rmtree
    onerror(os.lstat, path, sys.exc_info())
  File "/usr/lib/python3.8/shutil.py", line 707, in rmtree
    orig_st = os.lstat(path)
FileNotFoundError: [Errno 2] No such file or directory: '/home/mmaeng/source/test-mod/build'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestp2Low priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions