emesene forum
March 14, 2010, 08:08:59 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: REPORT ANY ISSUE HERE - PLEASE CHECK IF THE PROBLEM HAS ALREADY BEEN REPORTED FIRST -- THANKS
 
  Home   Forum   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: NoneType error in SmileyRenderer @ line 321 (def _update_smilies)  (Read 1833 times)
WildDaemon
Full Member
***

l33tness: 2
Offline Offline

Posts: 15


View Profile
« on: February 13, 2009, 03:00:25 AM »

Goodday,

I would like to inform you about the error mentioned in my title.
I did not feel like creating a TRAC ticket, as I have fixed the error myself.

The new file contains:
- a fix for the NoneType error
- an additional fix for the KeyError (that appeared after applying the previous fix)
- a space to tab conversion (as it currently saves around 3,700 bytes)
- a leading and trailing whitespace cleanup

Tested on: Windows XP SP3, Python 2.6.1 (w/ pycairo 1.4.12-2, pygobject 2.14.2-2, pygtk-2.12.1-3).

I have attached the file to this post, please keep in mind that this is saved in Windows (so it has a \r\n line ending).
This fix is tested and works. Feel free to test and modify if needed.
Thanks for your time and keep up the good work,


Greetz,
Logged
WildDaemon
Full Member
***

l33tness: 2
Offline Offline

Posts: 15


View Profile
« Reply #1 on: February 14, 2009, 03:42:09 AM »

I have looked into a way to reproduce this error and I hereby give you the answer:
Let someone on your list use one (or more) of the WLM special I'M icons (*red+u,*bgca,*hsus,*naf,*mssoc,*9mil,*sierra,*help,*komen,*unicef).


Greetz,
Logged
Miles_Teg
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 495


View Profile
« Reply #2 on: February 14, 2009, 04:03:21 AM »

Thank you for your work, man.
I hope some dev will take care of that  Grin
Logged
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9988
Offline Offline

Posts: 2145



View Profile Email
« Reply #3 on: February 19, 2009, 06:59:34 AM »

applied in my own crazy branch on launchpad Smiley

note: i'm no dev or whatsoever, just collecting useful patches around in a nice launchpad branch..  Smiley
Logged
dx
h4x0r
Administrator
Hero Member
*****

l33tness: 17
Offline Offline

Posts: 563


loldongs

dx@dxzone.com.ar
View Profile WWW Email
« Reply #4 on: March 22, 2009, 02:00:52 PM »

- a space to tab conversion (as it currently saves around 3,700 bytes)
- a leading and trailing whitespace cleanup

Never do this in a patch. We have style conventions, and they say 4 space indents.
Logged

shut up C10uD
WildDaemon
Full Member
***

l33tness: 2
Offline Offline

Posts: 15


View Profile
« Reply #5 on: March 28, 2009, 11:46:49 PM »

It does indeed say 4 spaces per indent. However, if you continue to read you'll see that the author also mentions that TABs can be used instead of spaces. It would be a wise idea to switch from spaces to TABs. Not only does it save (lots!) of bytes, in an editor like Notepad++ you can also see if there's too many leading whitespace which would lead to untidy coding. I would like to encourage you to change your 'style convention' (as you say) to TABs.

However, if you feel that I'm wrong about this then feel free to modify the file and convert all the TABs back to 4 spaces.


Greetz,

Logged
Meithan
Jr. Member
**

l33tness: 2
Offline Offline

Posts: 11

meithan@hotmail.com
View Profile Email
« Reply #6 on: March 29, 2009, 10:17:37 AM »

I can see a discussion coming about this Wink. Of course, it wouldn't be a half bad thing if we do it constructively. I use spaces myself, but as WildDaemon pointed out, there are some advantages to TABs. What does people think about this?
Logged

Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!