mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-06 10:09:52 +02:00
Fix logging.
This commit is contained in:
parent
82691b6c5c
commit
6fd2c81235
5 changed files with 19 additions and 31 deletions
|
@ -4,8 +4,6 @@ Command-line user interface.
|
|||
import argparse
|
||||
import sys
|
||||
|
||||
from typing import Optional
|
||||
|
||||
__author__ = "Sergey Vartanov"
|
||||
__email__ = "me@enzet.ru"
|
||||
|
||||
|
@ -185,15 +183,3 @@ def progress_bar(
|
|||
f"{int(length - fill_length - 1) * ' '}▏{text}"
|
||||
)
|
||||
sys.stdout.write("\033[F")
|
||||
|
||||
|
||||
def error(message: Optional[str] = None):
|
||||
"""
|
||||
Print error message.
|
||||
|
||||
:param message: message to print.
|
||||
"""
|
||||
if message:
|
||||
print(f"Error: {message}.")
|
||||
else:
|
||||
print("Error.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue