Skip to content

Commit

Permalink
ENH: use separate variable for major version
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgav committed Feb 2, 2024
1 parent 1549bf4 commit d0f91b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyxrf/model/catalog_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def set_name(self, name):
def get_catalog(catalog_name):
from packaging import version
import databroker
if version.parse(databroker.__version__).major == 1:
db_version_major = version.parse(databroker.__version__).major == 1
if db_version_major == 1:
raise ValueError("Non-tiled version of Databroker is installed")

from tiled.client import from_uri
Expand Down

0 comments on commit d0f91b4

Please sign in to comment.