Skip to content
Snippets Groups Projects
Commit f4166874 authored by Campbell Barton's avatar Campbell Barton
Browse files

Exit when autopep8 has no work to do instead of raising an erorr

parent 53c21c62
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,10 @@ def main():
if f not in ignore_files
]
# Happens when users run "make format" passing in individual C/C++ files.
if not files:
return
autopep8_format(files)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment