http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10975
Revision: 10975 Author: drtrigon Date: 2013-01-23 20:54:31 +0000 (Wed, 23 Jan 2013) Log Message: ----------- bug fix; make version.py working with unconfigured repo also (fresh checkout)
Modified Paths: -------------- trunk/pywikipedia/pywikibot/__init__.py
Modified: trunk/pywikipedia/pywikibot/__init__.py =================================================================== --- trunk/pywikipedia/pywikibot/__init__.py 2013-01-23 16:32:00 UTC (rev 10974) +++ trunk/pywikipedia/pywikibot/__init__.py 2013-01-23 20:54:31 UTC (rev 10975) @@ -1,4 +1,8 @@ # wikipedia.py will monkey-patch this module to look completely # alike wikipedia itself...
-import wikipedia +try: + import wikipedia +except Exception, e: + print e + print u'Serious import error; pywikibot not available - was it configured?'