Add RarExists exception.

master
voussoir 2020-11-06 00:20:20 -08:00
parent 35aca12dcf
commit ebcc62d765
1 changed files with 4 additions and 1 deletions

View File

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