Skip to content

Commit

Permalink
exec: tolerate more error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
markokr committed Sep 9, 2017
1 parent 53ee7b9 commit 84ca97e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rarfile.py
Expand Up @@ -2868,6 +2868,8 @@ def custom_popen(cmd):
except OSError as ex:
if ex.errno == errno.ENOENT:
raise RarCannotExec("Unrar not installed? (rarfile.UNRAR_TOOL=%r)" % UNRAR_TOOL)
if ex.errno == errno.EACCES or ex.errno == errno.EPERM:
raise RarCannotExec("Cannot execute unrar (rarfile.UNRAR_TOOL=%r)" % UNRAR_TOOL)
raise
return p

Expand Down

0 comments on commit 84ca97e

Please sign in to comment.