r85069 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85068‎ | r85069 | r85070 >
Date:14:58, 31 March 2011
Author:diederik
Status:deferred
Tags:
Comment:
Additional exceptions defined.
Modified paths:
  • /trunk/tools/editor_trends/classes/exceptions.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/classes/exceptions.py
@@ -47,6 +47,15 @@
4848 return 'You have not installed a program to extract %s archives.' \
4949 % self.extension
5050
 51+class CompressedFileNotSupported(Error):
 52+ def __init__(self, extension):
 53+ self.extension = extension
 54+
 55+ def __str__(self):
 56+ return 'Wikilytics does not support %s files to extract directly from.' \
 57+ % self.extension
 58+
 59+
5160 class OutDatedPythonVersionError(Error):
5261 def __init__(self, version):
5362 self.version = version