0 1 0
default
Jean-Francois Pieronne - 16 months ago 2018-10-23 10:53:39
jf.pieronne@laposte.net
Wrong exception catch in file_exists function
1 file changed with 1 insertions and 1 deletions:
↑ Collapse Diff ↑
...
 
@@ -58,7 +58,7 @@ def file_exists(fn):
58 58
 
        with FindFile(fn) as ifn:
59 59
 
            ifn.__next__()
60 60
 
        return True
61
 
    except VMSError, e:
61
 
    except StopIteration, e:
62 62
 
        return False
63 63
 

	
64 64
 
if __name__ == '__main__':
0 comments (0 inline, 0 general)