comparison rhodecode/controllers/changeset.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 03028bf372d7
children ec6354949623
comparison
equal deleted inserted replaced
3630:5d8cda8e63dc 3631:10b4e34841a4
69 ig_ws_global = GET.get('ignorews') 69 ig_ws_global = GET.get('ignorews')
70 ig_ws = filter(lambda k: k.startswith('WS'), GET.getall(fid)) 70 ig_ws = filter(lambda k: k.startswith('WS'), GET.getall(fid))
71 if ig_ws: 71 if ig_ws:
72 try: 72 try:
73 return int(ig_ws[0].split(':')[-1]) 73 return int(ig_ws[0].split(':')[-1])
74 except: 74 except Exception:
75 pass 75 pass
76 return ig_ws_global 76 return ig_ws_global
77 77
78 78
79 def _ignorews_url(GET, fileid=None): 79 def _ignorews_url(GET, fileid=None):
122 else: 122 else:
123 retval = ln_ctx_global 123 retval = ln_ctx_global
124 124
125 try: 125 try:
126 return int(retval) 126 return int(retval)
127 except: 127 except Exception:
128 return 3 128 return 3
129 129
130 130
131 def _context_url(GET, fileid=None): 131 def _context_url(GET, fileid=None):
132 """ 132 """