Skip to content

Commit

Permalink
skip profile_me import if desc not available
Browse files Browse the repository at this point in the history
  • Loading branch information
tgbugs committed May 8, 2019
1 parent 6e8040c commit eed61de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pysercomb/parsers/units.py
Expand Up @@ -325,10 +325,14 @@ def main():
import pprint
from time import time
from pathlib import Path
from desc.prof import profile_me
from pysercomb.pyr.units import SExpr
from protcur.config import __units_folder__ as units_path

try:
from desc.prof import profile_me
except ImportError:
profile_me = lambda f: f

(parameter_expression, quantity, unit,
unit_atom, debug_dict) = make_unit_parser(units_path)

Expand Down

0 comments on commit eed61de

Please sign in to comment.