Removed improper NotImplementedError usage

This commit is contained in:
2Shirt 2019-08-20 19:21:44 -06:00
parent c43539a92d
commit 516dc88d44
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 3 additions and 3 deletions

View file

@ -73,9 +73,9 @@ def update_log_path(dest_dir, dest_name=''):
# Safety checks
if len(root_logger.handlers) > 1:
raise NotImplementedError('Multiple handlers not supported')
raise RuntimeError('Multiple handlers not supported')
if not isinstance(cur_handler, logging.FileHandler):
raise NotImplementedError('Only FileHandlers are supported')
raise RuntimeError('Only FileHandlers are supported')
# Copy original log to new location
source = pathlib.Path(cur_handler.baseFilename)

View file

@ -439,7 +439,7 @@ def set_title(title):
if os.name == 'nt':
os.system(f'title {title}')
else:
raise NotImplementedError
print_error('Setting the title is only supported under Windows.')
def sleep(seconds=2):