Removed improper NotImplementedError usage
This commit is contained in:
parent
c43539a92d
commit
516dc88d44
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue