<?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 Arcpy GetMessages in PythonWin in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-getmessages-in-pythonwin/m-p/149844#M11617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a beginner to Python coding and now working on a basic script program, where I'm using both Print and arcpy.AddMessage/arcpy.AddError in a standalone script for ArcMap or in Pythonwin. However, I'm having issues with how I can do this for arcpy.GetMessages in PythonWin to find a traceback error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; msgs = arcpy.GetMessages(2)&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; min-height: 0px; orphans: 2; overflow: visible; overflow-x: visible; position: static; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;print (msgs)&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; min-height: 0px; orphans: 2; overflow: visible; overflow-x: visible; position: static; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;arcpy.AddMessage(msgs)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;But couldn't get any traceback message. Is there a code that helps show the traceback error in Pythonwin?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full Script below:&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;import arcpy&lt;BR /&gt;from arcpy import env&lt;BR /&gt;from arcpy.sa import *&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;try:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Sets the workspace evironment settings.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; env.workspace = "E:/College/Penn State/GEOG 485/Lesson 1/Lesson1"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inRaster = "foxlake"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; contourInterval = 25&lt;BR /&gt;&amp;nbsp; &amp;nbsp; baseContour = 0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; outContours = "E:/College/Penn State/GEOG 485/Lesson 1/Lesson1/ContourFoxLake.shp"&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; arcpy.CheckOutExtension("Spatial")&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; arcpy.sa.Contour(inRaster, outContours, contourInterval, baseContour)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; # Report a success message&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Contour creation successful!"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Contour creation successful!")&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;except:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Report an error message&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Failed to create the contour."&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError("Failed to create the contour.")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Report any error messages that the Contour tool might have generated&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgs = arcpy.GetMessages(2)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print (msgs)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(msgs)&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2018 01:02:45 GMT</pubDate>
    <dc:creator>JacobHorwitz1</dc:creator>
    <dc:date>2018-08-28T01:02:45Z</dc:date>
    <item>
      <title>Arcpy GetMessages in PythonWin</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-getmessages-in-pythonwin/m-p/149844#M11617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a beginner to Python coding and now working on a basic script program, where I'm using both Print and arcpy.AddMessage/arcpy.AddError in a standalone script for ArcMap or in Pythonwin. However, I'm having issues with how I can do this for arcpy.GetMessages in PythonWin to find a traceback error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; msgs = arcpy.GetMessages(2)&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; min-height: 0px; orphans: 2; overflow: visible; overflow-x: visible; position: static; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;print (msgs)&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; min-height: 0px; orphans: 2; overflow: visible; overflow-x: visible; position: static; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;arcpy.AddMessage(msgs)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;But couldn't get any traceback message. Is there a code that helps show the traceback error in Pythonwin?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full Script below:&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;import arcpy&lt;BR /&gt;from arcpy import env&lt;BR /&gt;from arcpy.sa import *&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;try:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Sets the workspace evironment settings.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; env.workspace = "E:/College/Penn State/GEOG 485/Lesson 1/Lesson1"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inRaster = "foxlake"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; contourInterval = 25&lt;BR /&gt;&amp;nbsp; &amp;nbsp; baseContour = 0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; outContours = "E:/College/Penn State/GEOG 485/Lesson 1/Lesson1/ContourFoxLake.shp"&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; arcpy.CheckOutExtension("Spatial")&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; arcpy.sa.Contour(inRaster, outContours, contourInterval, baseContour)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; # Report a success message&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Contour creation successful!"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Contour creation successful!")&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;except:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Report an error message&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Failed to create the contour."&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError("Failed to create the contour.")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Report any error messages that the Contour tool might have generated&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgs = arcpy.GetMessages(2)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print (msgs)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(msgs)&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 01:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-getmessages-in-pythonwin/m-p/149844#M11617</guid>
      <dc:creator>JacobHorwitz1</dc:creator>
      <dc:date>2018-08-28T01:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy GetMessages in PythonWin</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-getmessages-in-pythonwin/m-p/149845#M11618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/functions/getmessages.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/functions/getmessages.htm"&gt;GetMessages—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you try just&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;msgs = arcpy.GetMessages()&amp;nbsp; # get all&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 03:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-getmessages-in-pythonwin/m-p/149845#M11618</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-28T03:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy GetMessages in PythonWin</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-getmessages-in-pythonwin/m-p/149846#M11619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a note... if you take everything out of a try except block, you will get an error message which is largely the same as would be returned otherwise.&amp;nbsp; I quite using try except blocks a long time ago... especially in cases where you only want to get the traceback messages rather than 'do' something else on failure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From notes I made a long time agoo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: transparent; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #3d3d3d; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; min-height: 10.66px; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;&lt;/P&gt;&lt;DIV style="background-color: transparent; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #3d3d3d; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; max-width: 1138.4px; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; overflow-x: auto; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;&lt;TABLE border="2" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#3D3D3D&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;6&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#505050&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#F2F2F2&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;6&amp;quot;}" style="border-collapse: collapse; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-spacing: 0px 0px; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; width: 1115.63px; padding: 0px; margin: 0px 0px 2px 0px; border: 1px solid #e23d39;"&gt;&lt;THEAD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 0px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;TR style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 0px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;TH style="background-color: #f2f2f2; background-image: none; background-position-x: right; background-position-y: center; background-repeat: no-repeat; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #505050; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: bold; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; width: 353.5px; padding: 6px; margin: 0px; border: 2px solid #e23d39;" valign="middle"&gt;&lt;SPAN style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: bold; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #505050;"&gt;&lt;STRONG style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: bold; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #505050;"&gt;Script variants&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="background-color: #f2f2f2; background-image: none; background-position-x: right; background-position-y: center; background-repeat: no-repeat; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #505050; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: bold; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 6px; margin: 0px; border: 2px solid #e23d39;" valign="middle"&gt;&lt;SPAN style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: bold; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #505050;"&gt;&lt;STRONG style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: bold; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #505050;"&gt;Output&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 0px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;TR style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 0px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 6px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;A very simple script, with an obvious error.&lt;/P&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; min-height: 10.66px; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE style="background-attachment: scroll; background-clip: border-box; background-color: #f5f2f0; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #000000; counter-reset: linenumber; direction: ltr; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; line-height: 22.5px; -ms-hyphens: none; outline-color: invert; outline-style: none; outline-width: 0px; overflow-x: auto; position: relative; text-align: left; text-shadow: 0px 1px #fff; vertical-align: baseline; white-space: pre; word-break: normal; word-spacing: 0px; word-wrap: normal; padding: 15px 15px 15px 57px; margin: 7.5px 0px 7.5px 0px; border: 0px none #000000;"&gt;&lt;CODE style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; position: relative; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #000000;"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #708090; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #708090;"&gt;# version 1&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;(&lt;/SPAN&gt;something&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;)&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; left: -57px; letter-spacing: -1px; -ms-user-select: none; outline-color: invert; outline-style: none; outline-width: 0px; pointer-events: none; position: absolute; text-shadow: 0px 1px #fff; top: -3px; vertical-align: baseline; width: 45px; border-width: 0px 1px 0px 0px; border-color: #000000 #999999 #000000 #000000; border-style: none solid none none; padding: 0px; margin: 0px;"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/TD&gt;&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 6px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;( IDE dependent message.... )&lt;/P&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;&amp;nbsp; File "Path_to_script\script_name.py", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(something)&lt;/P&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;NameError: name 'something' is not defined&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 0px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 6px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;As above, but getting smarter.&lt;/P&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; min-height: 10.66px; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE style="background-attachment: scroll; background-clip: border-box; background-color: #f5f2f0; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #000000; counter-reset: linenumber; direction: ltr; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; line-height: 22.5px; -ms-hyphens: none; outline-color: invert; outline-style: none; outline-width: 0px; overflow-x: auto; position: relative; text-align: left; text-shadow: 0px 1px #fff; vertical-align: baseline; white-space: pre; word-break: normal; word-spacing: 0px; word-wrap: normal; padding: 15px 15px 15px 57px; margin: 7.5px 0px 7.5px 0px; border: 0px none #000000;"&gt;&lt;CODE style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; position: relative; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #000000;"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #708090; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #708090;"&gt;# version 2&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;try&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;:&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;(&lt;/SPAN&gt;something&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;)&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;except&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;:&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #669900; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #669900;"&gt;"ooops"&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;)&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; left: -57px; letter-spacing: -1px; -ms-user-select: none; outline-color: invert; outline-style: none; outline-width: 0px; pointer-events: none; position: absolute; text-shadow: 0px 1px #fff; top: -3px; vertical-align: baseline; width: 45px; border-width: 0px 1px 0px 0px; border-color: #000000 #999999 #000000 #000000; border-style: none solid none none; padding: 0px; margin: 0px;"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/TD&gt;&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 6px; margin: 0px; border: 2px solid #e23d39;"&gt;&amp;gt;&amp;gt;&amp;gt; ooops&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 0px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 6px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;Lets bring out the tools and see if that helps.&lt;/P&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; min-height: 10.66px; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE style="background-attachment: scroll; background-clip: border-box; background-color: #f5f2f0; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #000000; counter-reset: linenumber; direction: ltr; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; line-height: 22.5px; -ms-hyphens: none; outline-color: invert; outline-style: none; outline-width: 0px; overflow-x: auto; position: relative; text-align: left; text-shadow: 0px 1px #fff; vertical-align: baseline; white-space: pre; word-break: normal; word-spacing: 0px; word-wrap: normal; padding: 15px 15px 15px 57px; margin: 7.5px 0px 7.5px 0px; border: 0px none #000000;"&gt;&lt;CODE style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; position: relative; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #000000;"&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #708090; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #708090;"&gt;# version 3&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;import&lt;/SPAN&gt; sys&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;import&lt;/SPAN&gt; traceback&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;try&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;:&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;(&lt;/SPAN&gt;something&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;)&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;except&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;:&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exc_traceback &lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: rgba(255, 255, 255, 0.5); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #a67f59; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #a67f59;"&gt;=&lt;/SPAN&gt; sys&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;.&lt;/SPAN&gt;exc_info&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;)&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #0077aa; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #0077aa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;(&lt;/SPAN&gt;traceback&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;.&lt;/SPAN&gt;print_exc&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #999999; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none #999999;"&gt;)&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; outline-color: invert; outline-style: none; outline-width: 0px; text-shadow: 0px 1px #fff;" /&gt;&lt;SPAN style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: monospace; font-size: 15px; font-style: normal; font-weight: 400; left: -57px; letter-spacing: -1px; -ms-user-select: none; outline-color: invert; outline-style: none; outline-width: 0px; pointer-events: none; position: absolute; text-shadow: 0px 1px #fff; top: -3px; vertical-align: baseline; width: 45px; border-width: 0px 1px 0px 0px; border-color: #000000 #999999 #000000 #000000; border-style: none solid none none; padding: 0px; margin: 0px;"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/TD&gt;&lt;TD style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; vertical-align: baseline; padding: 6px; margin: 0px; border: 2px solid #e23d39;"&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;&amp;gt;&amp;gt;&amp;gt; Traceback (most recent call last):&lt;/P&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;&amp;nbsp; File "Path_to_script\script_name.py", line 5, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(something)&lt;/P&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;NameError: name 'something' is not defined&lt;/P&gt;&lt;P style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: 400; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; word-wrap: break-word; padding: 0px; margin: 0px; border: 0px none #3d3d3d;"&gt;None&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can draw your own conclusions which is the most useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 03:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-getmessages-in-pythonwin/m-p/149846#M11619</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-28T03:30:28Z</dc:date>
    </item>
  </channel>
</rss>

