Skip to content
This repository was archived by the owner on Oct 20, 2018. It is now read-only.

Commit 0567bf9

Browse files
committed
Fix check in utils.exclude_filepaths
1 parent dff4426 commit 0567bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gmusicapi_wrapper/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def exclude_filepaths(filepaths, exclude_patterns=None):
155155
A list of filepaths to include and a list of filepaths to exclude.
156156
"""
157157

158-
if exclude_patterns is not None:
158+
if not exclude_patterns:
159159
return filepaths, []
160160

161161
exclude_re = re.compile("|".join(pattern for pattern in exclude_patterns))

0 commit comments

Comments
 (0)