Skip to content

Commit

Permalink
Add pytest-pudb
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 11, 2024
1 parent 7a3ed57 commit d8fe453
Show file tree
Hide file tree
Showing 5 changed files with 186 additions and 57 deletions.
4 changes: 3 additions & 1 deletion course/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,12 @@ def get_repo_blob(repo: Repo_ish, full_name: str, commit_sha: bytes) -> Blob_ish

from course.validation import FileSystemFakeRepoFile

msg_full_name = full_name if full_name else _("(repo root)")

if isinstance(git_obj, (Blob, FileSystemFakeRepoFile)):
return git_obj
else:
raise ObjectDoesNotExist(_("resource '%s' is not a file") % full_name)
raise ObjectDoesNotExist(_("resource '%s' is not a file") % msg_full_name)


def get_repo_blob_data_cached(
Expand Down
Loading

0 comments on commit d8fe453

Please sign in to comment.