Skip to content
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

Doesn't set the exit code correctly on permission denied failure #591

Closed
rwmjones opened this issue Mar 22, 2021 · 1 comment · Fixed by #592
Closed

Doesn't set the exit code correctly on permission denied failure #591

rwmjones opened this issue Mar 22, 2021 · 1 comment · Fixed by #592
Assignees
Milestone

Comments

@rwmjones
Copy link

$ ll python/guestfs.py 
-r--r--r--. 1 rjones rjones 425068 Mar 22 12:56 python/guestfs.py
$ autopep8-3 -i python/guestfs.py 
[Errno 13] Permission denied: 'python/guestfs.py'
$ echo $?
0

Even with the --exit-code option it makes no difference. Note that the input file does need reformatting.

Your Environment

  • Python version: python3-3.9.0-1.fc34.x86_64
  • autopep8 version: python3-autopep8-1.5.4-2.fc34.noarch
  • Platform: Linux
@hhatto
Copy link
Owner

hhatto commented Mar 23, 2021

@rwmjones
Thanks for reporting.
fix in #592. This fix will be released in version 1.5.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants