Re: HelloWorld sanity check please - AttributeError: 'tuple' object has no attribute 'startswith'
[email protected] Wed, 24 Apr 2019 22:47:48 -0700 (PDT)
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_111_185115935.1556171268648 Content-Type: multipart/alternative; boundary="----=_Part_112_2050515181.1556171268648" ------=_Part_112_2050515181.1556171268648 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yeah, it took almost 4 hours for me to eventually spot the extra comma. Sometimes all you need is an extra pair of (more objective) eyes ! Thanks for the reply. On Thursday, 25 April 2019 06:30:04 UTC+2, Tim Roberts wrote: > > On Apr 24, 2019, at 8:11 AM, [email protected] <javascript:> wrote: > > > I have a VERY simple application that refuses to start. > This is the error trace:... > *...* > *main.conf:* > *...[/html]tools.staticdir.on =3D Truetools.staticdir.dir =3D=20 > './html',tools.staticdir.index =3D 'index.html'* > > > You really can't see it? That the second line in the [/html] section has= =20 > a trailing comma? In Python, that turns it from a string constant to a= =20 > one-item tuple. > =E2=80=94=20 > Tim Roberts, [email protected] <javascript:> > Providenza & Boekelheide, Inc.=20 > > --=20 You received this message because you are subscribed to the Google Groups "= cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. For more options, visit https://groups.google.com/d/optout. ------=_Part_112_2050515181.1556171268648 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Yeah, it took almost 4 hours for me to eventually=C2=A0spo= t the extra comma.<br>Sometimes all you need is an extra pair of (more obje= ctive) eyes !<br><br>Thanks for the reply.<br><br>On Thursday, 25 April 201= 9 06:30:04 UTC+2, Tim Roberts wrote:<blockquote class=3D"gmail_quote" styl= e=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left:= 1ex;"><div style=3D"word-wrap:break-word;line-break:after-white-space">On = Apr 24, 2019, at 8:11 AM, <a href=3D"javascript:" target=3D"_blank" gdf-obf= uscated-mailto=3D"GUTVv0SzCgAJ" rel=3D"nofollow" onmousedown=3D"this.href= =3D'javascript:';return true;" onclick=3D"this.href=3D'javascri= pt:';return true;">[email protected]</a> wrote:<br><div><blockquote typ= e=3D"cite"><br><div><div dir=3D"ltr">I have a VERY simple application that = refuses to start.<br>This is the error trace:...<br><b>...</b><div><b>main.= conf:</b></div><div><div style=3D"background-color:rgb(250,250,250);border-= color:rgb(187,187,187);border-style:solid;border-width:1px"><code><div><fon= t color=3D"#660066"><b><div>...</div><div>[/html]</div><div>tools.staticdir= .on =3D True</div><div>tools.staticdir.dir =3D './html',</div><div>= tools.staticdir.index =3D 'index.html'</div></b></font></div></code= ></div></div></div></div></blockquote><div><br></div><div>You really can= 9;t see it? =C2=A0That the second line in the [/html] section has a trailin= g comma? =C2=A0In Python, that turns it from a string constant to a one-ite= m tuple.</div><div>=E2=80=94=C2=A0</div></div><div>Tim Roberts, <a href=3D"= javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"GUTVv0SzCgAJ" rel= =3D"nofollow" onmousedown=3D"this.href=3D'javascript:';return true;= " onclick=3D"this.href=3D'javascript:';return true;">[email protected]= m</a><br>Providenza & Boekelheide, Inc. </div> <br></div></blockquote></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;cherrypy-users" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:cherrypy-users+unsubscribe-/[email protected]">cher= rypy-users+unsubscribe-/[email protected]</a>.<br /> To post to this group, send email to <a href=3D"mailto:cherrypy-users@googl= egroups.com">cherrypy-users-/[email protected]</a>.<br /> Visit this group at <a href=3D"https://groups.google.com/group/cherrypy-use= rs">https://groups.google.com/group/cherrypy-users</a>.<br /> For more options, visit <a href=3D"https://groups.google.com/d/optout">http= s://groups.google.com/d/optout</a>.<br /> ------=_Part_112_2050515181.1556171268648-- ------=_Part_111_185115935.1556171268648--