Browse Source

fix borg.exe presence detection for python3.2

Thomas Waldmann 9 years ago
parent
commit
723590df3d
1 changed files with 1 additions and 1 deletions
  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:
 try:
     exec_cmd('help', exe='borg.exe', fork=True)
     exec_cmd('help', exe='borg.exe', fork=True)
     BORG_EXES = ['python', 'binary', ]
     BORG_EXES = ['python', 'binary', ]
-except IOError as err:
+except (IOError, OSError) as err:
     if err.errno != errno.ENOENT:
     if err.errno != errno.ENOENT:
         raise
         raise
     BORG_EXES = ['python', ]
     BORG_EXES = ['python', ]