##// END OF EJS Templates
use a proper test instead of catching every exception
Benoit Boissinot -
r1956:16750010 default
parent child Browse files
Show More
@@ -789,14 +789,12 b' def rcpath():'
789 789 _rcpath = []
790 790 for p in os.environ['HGRCPATH'].split(os.pathsep):
791 791 if not p: continue
792 try:
792 if os.path.isdir(p):
793 793 for f in os.listdir(p):
794 794 if f.endswith('.rc'):
795 795 _rcpath.append(os.path.join(p, f))
796 continue
797 except:
798 pass
799 _rcpath.append(p)
796 else:
797 _rcpath.append(p)
800 798 else:
801 799 _rcpath = os_rcpath()
802 800 return _rcpath
General Comments 0
You need to be logged in to leave comments. Login now