diff --git a/sartorius_logger/__init__.py b/sartorius_logger/__init__.py index 6e954ca..ed7f8cf 100644 --- a/sartorius_logger/__init__.py +++ b/sartorius_logger/__init__.py @@ -18,7 +18,7 @@ from .parsers import parse_cli_arguments, parse_gui_arguments try: from gooey import Gooey -except ImportError as exc: +except ImportError: def Gooey(*args, **kargs): msg = "The graphilcal user interface must be installed separately" @@ -98,7 +98,8 @@ def gooey_progress_factory(settings): total = settings.measurements print( ( - f"measuring every {settings.interval.value}{settings.interval.unit} " + f"measuring every " + f"{settings.interval.value}{settings.interval.unit} " f"for {settings.duration.value}{settings.duration.unit}" ) ) @@ -200,7 +201,7 @@ def cli(): @Gooey( program_name="SartoriusLogger", - progress_regex="^measurement (?P\d+) of (?P\d+)", + progress_regex=r"^measurement (?P\d+) of (?P\d+)", progress_expr="current / total * 100", ) def gui():