diff 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
line wrap: on
line diff
--- a/rhodecode/config/routing.py	Thu Mar 28 03:29:38 2013 +0100
+++ b/rhodecode/config/routing.py	Thu Mar 28 03:34:36 2013 +0100
@@ -41,7 +41,7 @@
             if len(by_id) == 2 and by_id[1].isdigit() and by_id[0] == '':
                 repo_name = Repository.get(by_id[1]).repo_name
                 match_dict['repo_name'] = repo_name
-        except:
+        except Exception:
             pass
 
         return is_valid_repo(repo_name, config['base_path'])