Ottomata has uploaded a new change for review.
https://gerrit.wikimedia.org/r/253675
Change subject: Don't attempt to access .__doc__ if it isn't set, e.g. if -OO
is given to python
......................................................................
Don't attempt to access .__doc__ if it isn't set, e.g. if -OO is given to python
Change-Id: I3f87535997d6ea2b5245e52b2a7b38671b0c7ce9
---
M bin/eventlogging-service
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/eventlogging
refs/changes/75/253675/1
diff --git a/bin/eventlogging-service b/bin/eventlogging-service
index 85553d3..7b7c66a 100755
--- a/bin/eventlogging-service
+++ b/bin/eventlogging-service
@@ -10,9 +10,13 @@
from eventlogging import EventLoggingService
from eventlogging import init_schema_cache, init_topic_config, setup_logging
+if EventLoggingService.__doc__:
+ argparse_doc = EventLoggingService.__doc__
+else:
+ argparse_doc=''
ap = argparse.ArgumentParser(
- description=textwrap.dedent(EventLoggingService.__doc__),
+ description=textwrap.dedent(argparse_doc),
formatter_class=argparse.RawTextHelpFormatter,
fromfile_prefix_chars='@'
)
--
To view, visit https://gerrit.wikimedia.org/r/253675
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3f87535997d6ea2b5245e52b2a7b38671b0c7ce9
Gerrit-PatchSet: 1
Gerrit-Project: eventlogging
Gerrit-Branch: master
Gerrit-Owner: Ottomata <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits