Add RarExists exception.

This commit is contained in:
voussoir 2020-11-06 00:20:20 -08:00
parent 35aca12dcf
commit ebcc62d765

View file

@ -16,6 +16,9 @@ RESERVE_SPACE_ON_DRIVE = 30 * bytestring.GIBIBYTE
class RarParException(Exception): class RarParException(Exception):
pass pass
class RarExists(RarParException):
pass
class NotEnoughSpace(RarParException): class NotEnoughSpace(RarParException):
pass pass
@ -291,7 +294,7 @@ def rarpar(
existing = winglob.glob(f'{basename}*.rar') existing = winglob.glob(f'{basename}*.rar')
if existing: if existing:
raise Exception(f'{existing[0]} already exists.') raise RarExists(f'{existing[0]} already exists.')
#### #### #### ####