1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 09:19:31 +00:00

fix borg.exe presence detection for python3.2

This commit is contained in:
Thomas Waldmann 2015-10-18 19:18:24 +02:00
parent 60cdb5f716
commit 723590df3d

View file

@ -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', ]