Skip to content

OSError: [Errno 9] Bad File Descriptor #35

@Matthew-Hiebing

Description

@Matthew-Hiebing

Hello,

I've been using this code for almost a year now. It has worked great up until a few months ago. I started getting the error message below. It seems like its having trouble with a specific commit but I can't tell. Has anyone seen or reported something like this before?

Analyzing commit at 2022-10-18 17:54:58
Commit changes: insertions: {'.xml': 100} deletions: {'.xml': 100}
Apply changes: insertions: {'.xml': 1} deletions: {'.xml': 1}
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\Matthew.Hiebing\Documents\1_GitHubRepos\BitbucketCommits\Contributions-Importer-For-Github\run_script.py", line 22, in
importer.import_repository()
File "c:\Users\Matthew.Hiebing\Documents\1_GitHubRepos\BitbucketCommits\Contributions-Importer-For-Github\git_contributions_importer\Importer.py", line 104, in import_repository
self.content.save()
File "c:\Users\Matthew.Hiebing\Documents\1_GitHubRepos\BitbucketCommits\Contributions-Importer-For-Github\git_contributions_importer\Content.py", line 33, in save
with open(full_path, 'w') as f:
OSError: [Errno 9] Bad file descriptor
(bitbucketToGitHub)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions