comparison rhodecode/config/routing.py @ 3631:10b4e34841a4 beta

Don't catch all exceptions
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 28 Mar 2013 03:34:36 +0100
parents 802c94bdfc85
children 4c78a0855a17
comparison
equal deleted inserted replaced
3630:5d8cda8e63dc 3631:10b4e34841a4
39 try: 39 try:
40 by_id = repo_name.split('_') 40 by_id = repo_name.split('_')
41 if len(by_id) == 2 and by_id[1].isdigit() and by_id[0] == '': 41 if len(by_id) == 2 and by_id[1].isdigit() and by_id[0] == '':
42 repo_name = Repository.get(by_id[1]).repo_name 42 repo_name = Repository.get(by_id[1]).repo_name
43 match_dict['repo_name'] = repo_name 43 match_dict['repo_name'] = repo_name
44 except: 44 except Exception:
45 pass 45 pass
46 46
47 return is_valid_repo(repo_name, config['base_path']) 47 return is_valid_repo(repo_name, config['base_path'])
48 48
49 def check_group(environ, match_dict): 49 def check_group(environ, match_dict):