Skip to content

Conversation

@rongxin-liu
Copy link
Contributor

@rongxin-liu rongxin-liu commented Oct 4, 2021

Running check50 --local cs50/problems/2021/fall/speller on both macOS and Ubuntu 20.04 will run into FileNotFoundError exception.

And it seems shutil.copy() will raise FileNotFoundError exception, not IsADirectoryError:
https://github.com/python/cpython/blame/e6d1aa1ac65b6908fdea2c70ec3aa8c4f1dffcb5/Lib/shutil.py#L284

Perhaps we should catch both exceptions for now.

@rongxin-liu rongxin-liu added the bug label Oct 4, 2021
@rongxin-liu rongxin-liu self-assigned this Oct 4, 2021
@rongxin-liu rongxin-liu merged commit 2559484 into main Oct 4, 2021
@rongxin-liu rongxin-liu deleted the shutil-copy-patch branch December 28, 2022 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant