Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readthedocs/api/v2/views/model_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class DisableListEndpoint:
We are disablng the listing endpoint because it could cause DOS without
using any type of filtering.

This class disables these endpoints except:
This class disables these endpoints except Exception:

- version resource when passing ``?project__slug=``
- build resource when using ``?commit=``
Expand Down
4 changes: 2 additions & 2 deletions readthedocs/proxito/tests/test_hosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ def _normalize_datetime_fields(self, obj):
try:
obj["projects"]["current"]["created"] = "2019-04-29T10:00:00Z"
obj["projects"]["current"]["modified"] = "2019-04-29T12:00:00Z"
except:
except Exception:
pass

try:
obj["builds"]["current"]["created"] = "2019-04-29T10:00:00Z"
obj["builds"]["current"]["finished"] = "2019-04-29T10:01:00Z"
except:
except Exception:
pass
return obj

Expand Down
2 changes: 1 addition & 1 deletion readthedocs/vcs_support/backends/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def get_remote_fetch_refspec(self):

def clone(self):
"""Clones the repository."""
# TODO: We should add "--no-checkout" in all git clone operations, except:
# TODO: We should add "--no-checkout" in all git clone operations, except Exception:
# There exists a case of version_type=BRANCH without a branch name.
# This case is relevant for building projects for the first time without knowing the name
# of the default branch. Once this case has been made redundant, we can have
Expand Down