moinsetup

Changeset

57:f423c8325972
2011-10-15 Paul Boddie raw files shortlog changelog graph Added exception handling where theme directories cannot be accessed.
moinsetup.py (file)
     1.1 --- a/moinsetup.py	Sat Oct 15 23:57:22 2011 +0200
     1.2 +++ b/moinsetup.py	Sat Oct 15 23:58:51 2011 +0200
     1.3 @@ -502,8 +502,11 @@
     1.4          print "-----------------"
     1.5          print
     1.6  
     1.7 -        for theme in self.get_theme_directories():
     1.8 -            print "%-24s%s" % theme
     1.9 +        try:
    1.10 +            for theme in self.get_theme_directories():
    1.11 +                print "%-24s%s" % theme
    1.12 +        except OSError, exc:
    1.13 +            print "Not shown:", str(exc)
    1.14  
    1.15      def _get_abspath(self, d):
    1.16          return d and abspath(d) or None