KOSASIH / SilkRoad

Formatted string passed to logging module PYL-W1203
Performance
Minor
5 months ago5 months old
Use lazy % formatting in logging functions
23    logger.addHandler(file_handler)
24
25    # Log the error message
26    logger.error(f"{exc_type.__name__}: {exc_value}")27
28    # Display an error message to the user
29    print("An error has occurred. Please contact the system administrator.")