exceptions Indentation Error - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: exceptions Indentation Error (/showthread.php?tid=192587) |
exceptions Indentation Error - toyota12303 - 2014-04-18 Hello all, I have recently written myself a little script that will notify the user when you receive a new email. The script works fine but when i try to notify the user then it returns an error. Here is the error that it logged in to the xbmc.txt : PHP Code: Error Type: <type 'exceptions.IndentationError'> And here is how i tried to notify the user from the python script : PHP Code: xbmc.executebuiltin('XBMC.Notification(Snufflylake You ,have an unread message)') My python skills aren't too good at the moment, so it may be a very simple mistake. Any help would be much appreciated! Thanks. exceptions Indentation Error - spoyser - 2014-04-18 Indentation error basically means that that line of code is indented inconsistently with the rest of your code. If it looks like it is indented properly check you haven't mixed spaces and tabs. Or maybe an empty if/while/for statement? Post the code above that line so we can see the context. RE: exceptions Indentation Error - el_Paraguayo - 2014-04-18 I think we'll need to see the rest of the code so we can see what the indentation should be. RE: exceptions Indentation Error - toyota12303 - 2014-04-18 Thanks for the quick reply! Here is a copy of the whole script : PHP Code: import xbmc RE: exceptions Indentation Error - Martijn - 2014-04-18 you need to indent it PHP Code: if newEmail==1: RE: exceptions Indentation Error - toyota12303 - 2014-04-18 Thanks man! it's working perfectly now. |