Skip to content

Commit cb5920d

Browse files
Fixed table info support in ArcGIS Pro 3
1 parent 27446f5 commit cb5920d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

arcpyext/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "0.7.22"
1+
__version__ = "0.7.23"
22
__author__ = "David Whittingham; David Payne; Adam Kerz; Peter Reyne; Daniel Baternik; Chris Blanchfield; Gary Bagnall"
33
__copyright__ = "Copyright (C) 2013-2022 David Whittingham"

arcpyext/mapping/_cim/tables.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ def __init__(self, cim_obj):
6060
class ProStandaloneTable(ProDisplayTableBase):
6161
def __init__(self, proj_zip, xml_string):
6262
self._proj_zip = proj_zip
63-
super().__init__(CIMStandaloneTable.FromXml(xml_string))
64-
63+
try:
64+
super().__init__(CIMStandaloneTable.FromXml(xml_string))
65+
except AttributeError:
66+
# probably JSON, attempt that
67+
super().__init__(CIMStandaloneTable.FromJson(xml_string))
68+
6569
name = passthrough_prop("Name")
6670
service_id = passthrough_prop("ServiceTableID")

0 commit comments

Comments
 (0)