Skip to content

fix: use ImportError and context managers for file reads#10

Open
haosenwang1018 wants to merge 1 commit intoNVlabs:mainfrom
haosenwang1018:fix/bare-except-and-file-handles
Open

fix: use ImportError and context managers for file reads#10
haosenwang1018 wants to merge 1 commit intoNVlabs:mainfrom
haosenwang1018:fix/bare-except-and-file-handles

Conversation

@haosenwang1018
Copy link

  • prompt_expand.py: bare except:except ImportError:
  • wandb.py: 2x open().read()with open() as f: to prevent file descriptor leaks

…e reads

- prompt_expand.py: bare except → except ImportError
- wandb.py: 2x open().read() → with open() as f: f.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant