mirror of https://github.com/eyhc1/rendercv.git
fix CLI
This commit is contained in:
parent
e0fad68de0
commit
bae73ddda8
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue