Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'int' object has no attribute 'isdigit' #88

Closed
shubham-ency opened this issue Nov 30, 2021 · 2 comments
Closed

AttributeError: 'int' object has no attribute 'isdigit' #88

shubham-ency opened this issue Nov 30, 2021 · 2 comments

Comments

@shubham-ency
Copy link

xml = dicttoxml(tempDict, custom_root='test', attr_type=False)
File "C:\Ency\ExportRates_XML\envExportRatesXml\lib\site-packages\dicttoxml.py", line 393, in dicttoxml

convert(obj, ids, attr_type, item_func, cdata, parent=custom_root),

File "C:\Ency\ExportRates_XML\envExportRatesXml\lib\site-packages\dicttoxml.py", line 189, in convert

return convert_dict(obj, ids, parent, attr_type, item_func, cdata)

File "C:\Ency\ExportRates_XML\envExportRatesXml\lib\site-packages\dicttoxml.py", line 230, in convert_dict

convert_dict(val, ids, key, attr_type, item_func, cdata),

File "C:\Ency\ExportRates_XML\envExportRatesXml\lib\site-packages\dicttoxml.py", line 230, in convert_dict

convert_dict(val, ids, key, attr_type, item_func, cdata),

File "C:\Ency\ExportRates_XML\envExportRatesXml\lib\site-packages\dicttoxml.py", line 230, in convert_dict
convert_dict(val, ids, key, attr_type, item_func, cdata),
File "C:\Ency\ExportRates_XML\envExportRatesXml\lib\site-packages\dicttoxml.py", line 214, in convert_dict

key, attr = make_valid_xml_name(key, attr)

File "C:\Ency\ExportRates_XML\envExportRatesXml\lib\site-packages\dicttoxml.py", line 145, in make_valid_xml_name

if key.isdigit():

AttributeError: 'int' object has no attribute 'isdigit'

@quandyfactory
Copy link
Owner

This will be fixed in version 1.7.6.

@quandyfactory
Copy link
Owner

Fixed in version 1.7.6.

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Nov 27, 2022
Version 1.7.6
-------------
* Changes:
    * Fixed (quandyfactory/dicttoxml#88) on github.
    * Made XML encoding attribute optional and editable as per (quandyfactory/dicttoxml#83)
on github.

Version 1.7.5
-------------
* Changes:
    * Fixed (quandyfactory/dicttoxml#91) on github.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants