<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Python Tool Error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-tool-error/m-p/1193726#M65018</link>
    <description>&lt;P&gt;I created a python script for ArcGIS Pro tool I created. It worked fine a week ago, but for some reason, it now has this error: "ERROR 032659...TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'." What does this error mean and what are some possibilities for this type of error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks ahead for your help!&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 23:22:01 GMT</pubDate>
    <dc:creator>tzz_12</dc:creator>
    <dc:date>2022-07-19T23:22:01Z</dc:date>
    <item>
      <title>Python Tool Error</title>
      <link>https://community.esri.com/t5/python-questions/python-tool-error/m-p/1193726#M65018</link>
      <description>&lt;P&gt;I created a python script for ArcGIS Pro tool I created. It worked fine a week ago, but for some reason, it now has this error: "ERROR 032659...TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'." What does this error mean and what are some possibilities for this type of error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks ahead for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 23:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-tool-error/m-p/1193726#M65018</guid>
      <dc:creator>tzz_12</dc:creator>
      <dc:date>2022-07-19T23:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Python Tool Error</title>
      <link>https://community.esri.com/t5/python-questions/python-tool-error/m-p/1193739#M65019</link>
      <description>&lt;P&gt;It means that whatever line was trying to concatenate two things that were expecting strings and the first was "None"&lt;/P&gt;&lt;LI-CODE lang="python"&gt;a = None; b = "something"

a + str(b)
Traceback (most recent call last):

  File ",,,1.py", line 1, in &amp;lt;cell line: 1&amp;gt;
    a + str(b)

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'&lt;/LI-CODE&gt;&lt;P&gt;Now you can fix it without solving the None problem by using&lt;/P&gt;&lt;LI-CODE lang="python"&gt;f"{a} + {b}"
'None + something'

f"{a}{b}"
'Nonesomething'

"{}{}".format(a, b)
'Nonesomething'&lt;/LI-CODE&gt;&lt;P&gt;You will have to figure out why the first variable isn't getting what you want&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 00:15:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-tool-error/m-p/1193739#M65019</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-07-20T00:15:17Z</dc:date>
    </item>
  </channel>
</rss>

