Commits

Odd Simon Simonsen committed 68cad97

CustomFieldAdminPlugin: Fix an l10n setup import that may not be present for Trac 0.11.x

Comments (0)

Files changed (1)

 
 extra = {}
 
-from trac.util.dist import get_l10n_cmdclass
-cmdclass = get_l10n_cmdclass()
+try:
+    from trac.util.dist import get_l10n_cmdclass
+    cmdclass = get_l10n_cmdclass()
+except ImportError:
+    cmdclass = None
 if cmdclass:
     extra['cmdclass'] = cmdclass
     extractors = [