-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Made support-email configurable, fixes #100 #108
Conversation
|
|
@sedrubal I was just too fast with assigning, the commit should fix your problem ;-) |
Seems to be ok. |
@@ -64,11 +64,12 @@ def myNewExceptionHook(exctype, value, tb): | |||
import datetime | |||
# logging.exception() | |||
try: | |||
cfg = getConfig() | |||
email = cfg.get('general', 'support_mail') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please catch ConfigParser.Error here so that the crash handler can't crash
ebd26a9
to
b14f1ad
Compare
Sorry, had to rebase due to sloppiness. |
email = cfg.get('general', 'support_mail') | ||
except ConfigParserError: | ||
logging.warning("could not read mail address from config in graphical except-hook.") | ||
email = "dex Verantwortlichx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo? or gender bullshit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Man muss natürlich richtig gendern und so.
Spaß beiseite, ich dachte mir man kann das als easter egg einbauen, du darfst es aber auch gerne ändern :-P
… supplied in config
1e36da0
to
5f8bbe5
Compare
I have rebased this branch against current |
Can we merge this? :) |
the 'dex Verantwortlichx' should still be changed, maybe just to 'den Verantwortlichen'. |
I like this hidden ironical political and social criticism. But if you worry about that, I think its no problem to change this. Sometime in the future we should also change such messages to english and use internationalization and translations... |
1943beb
to
e6ec98d
Compare
we could try to implement a test, that checks whether the graphical except-hook is working. However, in sum this is probably not worth the time. |
I think, we can merge this, too. Until 21:00 |
That's OK for me. |
DebtLimitExceeded
exception - there it works...