Skip to content

Commit

Permalink
Properly use rarfile.custom_check (#913)
Browse files Browse the repository at this point in the history
Ignore the return code
  • Loading branch information
pannal authored and fernandog committed Apr 6, 2018
1 parent 879c0c8 commit 22c5a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subliminal/providers/legendastv.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def __init__(self, username=None, password=None):

# Provider needs UNRAR installed. If not available raise ConfigurationError
try:
rarfile.custom_check(rarfile.UNRAR_TOOL)
rarfile.custom_check([rarfile.UNRAR_TOOL], True)
except rarfile.RarExecError:
raise ConfigurationError('UNRAR tool not available')

Expand Down

0 comments on commit 22c5a9e

Please sign in to comment.