Explorar o código

fix borg.exe presence detection for python3.2

Thomas Waldmann %!s(int64=9) %!d(string=hai) anos
pai
achega
723590df3d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      borg/testsuite/archiver.py

+ 1 - 1
borg/testsuite/archiver.py

@@ -103,7 +103,7 @@ def exec_cmd(*args, archiver=None, fork=False, exe=None, **kw):
 try:
     exec_cmd('help', exe='borg.exe', fork=True)
     BORG_EXES = ['python', 'binary', ]
-except IOError as err:
+except (IOError, OSError) as err:
     if err.errno != errno.ENOENT:
         raise
     BORG_EXES = ['python', ]