emesene forum
March 14, 2010, 08:08:59 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
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
emesene forum
>
Forum
>
Development
>
Patches
>
NoneType error in SmileyRenderer @ line 321 (def _update_smilies)
Pages: [
1
]
« previous
next »
Print
Author
Topic: NoneType error in SmileyRenderer @ line 321 (def _update_smilies) (Read 1833 times)
WildDaemon
Full Member
l33tness: 2
Offline
Posts: 15
NoneType error in SmileyRenderer @ line 321 (def _update_smilies)
«
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
Posts: 15
Re: NoneType error in SmileyRenderer @ line 321 (def _update_smilies)
«
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
Posts: 495
Re: NoneType error in SmileyRenderer @ line 321 (def _update_smilies)
«
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
Logged
C10uD
ololol
Administrator
Hero Member
l33tness: -9988
Offline
Posts: 2145
Re: NoneType error in SmileyRenderer @ line 321 (def _update_smilies)
«
Reply #3 on:
February 19, 2009, 06:59:34 AM »
applied in my own crazy branch on launchpad
note: i'm no dev or whatsoever, just collecting useful patches around in a nice launchpad branch..
Logged
dx
h4x0r
Administrator
Hero Member
l33tness: 17
Offline
Posts: 563
loldongs
Re: NoneType error in SmileyRenderer @ line 321 (def _update_smilies)
«
Reply #4 on:
March 22, 2009, 02:00:52 PM »
Quote from: WildDaemon on February 13, 2009, 03:00:25 AM
- 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
Posts: 15
Re: NoneType error in SmileyRenderer @ line 321 (def _update_smilies)
«
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
Posts: 11
Re: NoneType error in SmileyRenderer @ line 321 (def _update_smilies)
«
Reply #6 on:
March 29, 2009, 10:17:37 AM »
I can see a discussion coming about this
. 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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Main
-----------------------------
=> Announcements
=> Feature Requests
=> Support (emesene1.x, emesene2)
===> Support (emesene 1.0.x) - SUPPORT CEASED
=> Themes
=> HOWTOs
=> Forum/site Requests
=> Offtopic
===> Nonsense
-----------------------------
Development
-----------------------------
=> Emesene
=> Plugins
=> Patches
=> Translations
-----------------------------
International Forum
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Português
TinyPortal v.1.0.6 beta 2 ©
Bloc
Loading...