Skip to content

clean up filenotfound error in logs during cfn submit #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mmaeng opened this issue Nov 4, 2022 · 0 comments · Fixed by #213
Closed

clean up filenotfound error in logs during cfn submit #212

mmaeng opened this issue Nov 4, 2022 · 0 comments · Fixed by #213
Labels
enhancement New feature or request p2 Low priority

Comments

@mmaeng
Copy link
Contributor

mmaeng commented Nov 4, 2022

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p2 Low priority
Projects
None yet
1 participant