[Chicago] Unexpected indent: secondary damage in syntax error?

Christos Hayward christos.jonathan.hayward at gmail.com
Sat Oct 27 14:23:19 EDT 2018


Thank you very much!

On Sat, Oct 20, 2018 at 2:02 PM Joshua Herman <zitterbewegung at gmail.com>
wrote:

> Dear Christos,
> I went over your code and in addition to the try: without except you had
> multiple issues with indentation which I have attempted to correct (but I
> could have also changed the logic in your program).  Also, I refactored
> your two trys into one try that goes over the whole loop. I assume this was
> also written with python 2.7 and you had print statements that were using
> python 3.x print syntax.
> Sincerely,
> Joshua herman
>
> On Sat, Oct 20, 2018 at 1:39 PM Carl Karsten <carl at personnelware.com>
> wrote:
>
>>  87         try:
>>
>> doesn't have an except.  which is an error.
>> On Sat, Oct 20, 2018 at 1:19 PM Christos Hayward
>> <christos.jonathan.hayward at gmail.com> wrote:
>> >
>> > I'm working on a very amateur firewalled CGI script for a friend's pet
>> project, and I am getting an IndentationError on line 106, the line for a
>> closing print statement. If I unindent "print" all the way to the left, the
>> error remains; if I comment out the (multiline) statement, an error is
>> reported at line 112 (the script is 111 lines).
>> >
>> > I have looked above line 106 for a syntax error that could be causing
>> secondary damage, and I haven't been able to put my finger on it yet.
>> >
>> > What am I doing to trigger a reported IndentationError?
>> >
>> >
>> > Thanks,
>> > --
>> >
>> > Christos Hayward, author, The Best of Jonathan's Corner
>> >
>> > _______________________________________________
>> > Chicago mailing list
>> > Chicago at python.org
>> > https://mail.python.org/mailman/listinfo/chicago
>>
>>
>>
>> --
>> Carl K
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> https://mail.python.org/mailman/listinfo/chicago
>>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> https://mail.python.org/mailman/listinfo/chicago
>


-- 

*Christos Hayward*, author, *The Best of Jonathan's Corner
<https://tinyurl.com/best-of-jonathans-corner>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20181027/babd3fd4/attachment.html>


More information about the Chicago mailing list