This commit is contained in:
Sina Atalay 2023-10-21 16:51:43 +02:00
parent e0fad68de0
commit bae73ddda8
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import os
import logging import logging
import re import re
from typing import Annotated from typing import Annotated
from functools import wraps
from .rendering import read_input_file, render_template, run_latex from .rendering import read_input_file, render_template, run_latex
@ -27,7 +28,7 @@ def user_friendly_errors(func):
Returns: Returns:
function: Decorated function function: Decorated function
""" """
@wraps(func)
def wrapper(*args, **kwargs): def wrapper(*args, **kwargs):
try: try:
func(*args, **kwargs) func(*args, **kwargs)