Skip to content

Commit 045e7de

Browse files
committed
xylib.xylib_get_version int try except block
1 parent 8ef0436 commit 045e7de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xrdpattern/parsing/xylib/xylib_repr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77

88
try:
99
import xylib
10+
__version__ = xylib.xylib_get_version()
1011
except ImportError:
1112
import warnings
1213
warnings.warn("""xylib is not installed. Setting xylib module to None.
1314
This will result in errors when using this module.
1415
Please install xylib to use this module.""")
1516
xylib = None
1617

17-
__version__ = xylib.xylib_get_version()
18+
1819

1920
import re
2021
from dataclasses import dataclass

0 commit comments

Comments
 (0)