diff options
Diffstat (limited to 'pyfingerd/cli.py')
-rwxr-xr-x | pyfingerd/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyfingerd/cli.py b/pyfingerd/cli.py index 8592314..659892c 100755 --- a/pyfingerd/cli.py +++ b/pyfingerd/cli.py @@ -99,12 +99,12 @@ def cli(binds, hostname, type_, scenario, scenario_start, log_level): fic = _FingerScenario.load(scenario) iface = _FingerScenarioInterface(fic, scenario_start) except (FileNotFoundError, PermissionError) as exc: - _logger.error(str(exc)) + _logger.error('%s', exc) return 1 except ValueError as exc: exc = str(exc) _logger.error('Error loading the scenario:') - _logger.error(f'{exc[0].upper()}{exc[1:]}.') + _logger.error('%s%s.', exc[0].upper(), exc[1:]) return 1 elif type_ != 'dummy': print( |