2014-04-18, 18:15
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 :
And here is how i tried to notify the user from the python script :
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.
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'>
Error Contents: ('expected an indented block', ('C:\\Users\\Xbox\\AppData\\Roaming\\XBMC\\addons\\skin.xbox\\system\\EmailNotify.py', 24, 0, "xbmc.executebuiltin('XBMC.Notification(Snufflylake You ,have an unread message)')\n"))
IndentationError: ('expected an indented block', ('C:\\Users\\Xbox\\AppData\\Roaming\\XBMC\\addons\\skin.xbox\\system\\EmailNotify.py', 24, 0, "xbmc.executebuiltin('XBMC.Notification(Snufflylake You ,have an unread message)')\n"))
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.