Skip to content

Commit

Permalink
if files is None or something...
Browse files Browse the repository at this point in the history
  • Loading branch information
jettero committed Dec 9, 2022
1 parent 8dddb46 commit 916094f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldogger/filter_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def search(self, line):

class FilterMachine:
def __init__(self, files):
self.files = [FMFile(x) for x in files]
self.files = [FMFile(x) for x in files] if isinstance(files, (tuple, list)) else list()
self.loaded = dict()

def search(self, line):
Expand Down

0 comments on commit 916094f

Please sign in to comment.