diff options
-rwxr-xr-x | scripts/fromfolder.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/fromfolder.py b/scripts/fromfolder.py index d5bb2b3..8d67cce 100755 --- a/scripts/fromfolder.py +++ b/scripts/fromfolder.py @@ -48,11 +48,14 @@ if __name__ == '__main__': exceptfile = sys.argv[4] exceptconf = set() - if os.path.isfile(exceptfile): - for ln in open(exceptfile): - lns = ln.rstrip() - if lns: - exceptconf.add(lns) + try: + if os.path.isfile(exceptfile): + for ln in open(exceptfile): + lns = ln.rstrip() + if lns: + exceptconf.add(lns) + except NameError: + pass rem = loadfromfolder(sf(conf.linux_sources + '/' + folder)) |