Skip to content

Commit

Permalink
wmllint: Skip inexistent paths passed in the command line
Browse files Browse the repository at this point in the history
Fixes issue #3286.

[ci skip]
  • Loading branch information
irydacea committed Jun 28, 2018
1 parent 7fc6a23 commit fbc9ac5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Expand Up @@ -85,6 +85,8 @@
* Fixed an issue with positioned sound sources ignoring the volume set in
Preferences after going off the audible radius and back (issue #3280).
* Fixed wmllint choking on gzipped binary files (e.g. gzipped tarballs).
* Fixed wmllint crashing on inexistent paths provided in the command line
(issue #3286).

## Version 1.14.3
### AI
Expand Down
6 changes: 6 additions & 0 deletions data/tools/wmllint
Expand Up @@ -3184,6 +3184,9 @@ In your case, your system interprets your arguments as:
arguments = ["."]

for directory in arguments:
if not os.path.exists(directory):
print("wmllint: skipping non-existent path %s" % directory)
continue
ofp = None
for fn in allcfgfiles(directory):
if verbose >= 2:
Expand Down Expand Up @@ -3254,6 +3257,9 @@ In your case, your system interprets your arguments as:
for word in declared_spellings["GLOBAL"]:
d.add_to_session(word.lower())
for directory in arguments:
if not os.path.exists(directory):
print("wmllint: skipping non-existent path %s" % directory)
continue
ofp = None
for fn in allcfgfiles(directory):
if verbose >= 2:
Expand Down

0 comments on commit fbc9ac5

Please sign in to comment.