Skip to content

Commit

Permalink
Merge pull request #3 from sixgad/dev
Browse files Browse the repository at this point in the history
feat: py_asciimath logging level
  • Loading branch information
sixgad authored Jun 20, 2024
2 parents b227e25 + 4990132 commit e55d7cf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions magic_html/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import re
import logging
from gzip import decompress

import numpy as np
Expand Down Expand Up @@ -65,9 +66,13 @@


def _translator():
import py_asciimath.translator.translator as _translator
old_log_level = logging.getLogger().level
try:
import py_asciimath.translator.translator as _translator

return _translator
return _translator
finally:
logging.getLogger().setLevel(old_log_level)


def ASCIIMath2Tex(*args, **kwargs):
Expand Down

0 comments on commit e55d7cf

Please sign in to comment.