mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2026-01-04 02:20:56 +01:00
rf(xml_parser): remove try except clause for unforseable scenario
This commit is contained in:
@@ -145,13 +145,7 @@ def _parse_data(element: etree.Element, layer_width: int) -> objects.LayerData:
|
|||||||
Returns:
|
Returns:
|
||||||
LayerData: Data object containing layer data or chunks of data.
|
LayerData: Data object containing layer data or chunks of data.
|
||||||
"""
|
"""
|
||||||
try:
|
encoding = element.attrib["encoding"]
|
||||||
encoding = element.attrib["encoding"]
|
|
||||||
except KeyError as e:
|
|
||||||
print(
|
|
||||||
"The tmx_file must be encoding by csv,. base64, gzip-base64, or zlip-base64"
|
|
||||||
)
|
|
||||||
raise e
|
|
||||||
|
|
||||||
compression = None
|
compression = None
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user