Commit 3f03e0cd4a1d17cc160ed7a3e24d0fc9db56749c
1 parent
0e2beedd
Exists in
master
and in
39 other branches
If repo and changeset are not available we can't count
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/proxy/views.py
... | ... | @@ -36,7 +36,10 @@ class TracProxyView(HitCounterViewMixin, ProxyView): |
36 | 36 | except (Ticket.DoesNotExist, ValueError): |
37 | 37 | return None |
38 | 38 | elif self.request.path_info.startswith('/changeset'): |
39 | - changeset, repo = self.request.path_info.split('/')[2:4] | |
39 | + try: | |
40 | + changeset, repo = self.request.path_info.split('/')[2:4] | |
41 | + except ValueError: | |
42 | + return None | |
40 | 43 | try: |
41 | 44 | obj = Revision.objects.get(rev=changeset, |
42 | 45 | repository_name=repo) | ... | ... |