Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Fix crash due to unfound attribute #2262

Merged
merged 1 commit into from
Oct 9, 2020
Merged

Conversation

Samiisd
Copy link
Contributor

@Samiisd Samiisd commented Oct 6, 2020

Description

An unexpected AttributeError exception is launched whenever the user defines save_dir on DGLDataset instantiation and uses self._save_dir within has_cache method.

Changes

Initializes the attribute self._save_dir in all cases.

An unexpected `AttributeError` exception is launched whenever the user defines `save_dir` on `DGLDataset` instantiation and uses `self._save_dir`  within `has_cache` method.
This commit fixes the issue.
@BarclayII
Copy link
Collaborator

Thanks!

@BarclayII BarclayII merged commit 8bbc84e into dmlc:master Oct 9, 2020
BarclayII pushed a commit to BarclayII/dgl that referenced this pull request Nov 27, 2020
An unexpected `AttributeError` exception is launched whenever the user defines `save_dir` on `DGLDataset` instantiation and uses `self._save_dir`  within `has_cache` method.
This commit fixes the issue.
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.

None yet

2 participants