Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Commit

Permalink
remove none check on files per request
Browse files Browse the repository at this point in the history
  • Loading branch information
TomConlin committed Jun 20, 2017
1 parent 3e3b02e commit 4f2f89b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions utils/fcaption
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,14 @@ class MainWindow(QtGui.QMainWindow):
# main application
def expand_dir(path):
for root, dirs, files in os.walk(path):
if files is not None:
files.sort()
for tmp in files:
if tmp[0] == '.': continue
tmp = os.path.join(root, tmp)
ext = os.path.splitext(tmp)[1]
if ext: ext = ext[1:].lower()
if ext in FILE_EXT:
yield tmp
files.sort()
for tmp in files:
if tmp[0] == '.': continue
tmp = os.path.join(root, tmp)
ext = os.path.splitext(tmp)[1]
if ext: ext = ext[1:].lower()
if ext in FILE_EXT:
yield tmp


class Application(QtGui.QApplication):
Expand Down

0 comments on commit 4f2f89b

Please sign in to comment.