diff rhodecode/model/repos_group.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 94f251fda314
children 4c78a0855a17
line wrap: on
line diff
--- a/rhodecode/model/repos_group.py	Thu Mar 28 03:29:38 2013 +0100
+++ b/rhodecode/model/repos_group.py	Thu Mar 28 03:34:36 2013 +0100
@@ -162,7 +162,7 @@
                 self.__create_group(new_repos_group.group_name)
 
             return new_repos_group
-        except:
+        except Exception:
             log.error(traceback.format_exc())
             raise
 
@@ -283,7 +283,7 @@
             self.__rename_group(old_path, new_path)
 
             return repos_group
-        except:
+        except Exception:
             log.error(traceback.format_exc())
             raise
 
@@ -292,7 +292,7 @@
         try:
             self.sa.delete(repos_group)
             self.__delete_group(repos_group, force_delete)
-        except:
+        except Exception:
             log.error('Error removing repos_group %s' % repos_group)
             raise