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

Fix error in helioviewer if download dir does not exist #2642

Merged
merged 1 commit into from
May 30, 2018

Conversation

vn-ki
Copy link
Member

@vn-ki vn-ki commented May 25, 2018

No description provided.

@pep8speaks
Copy link

pep8speaks commented May 25, 2018

Hello @vn-ki! Thanks for updating the PR.

Line 130:101: E501 line too long (159 > 100 characters)
Line 135:101: E501 line too long (156 > 100 characters)
Line 209:101: E501 line too long (152 > 100 characters)
Line 210:101: E501 line too long (187 > 100 characters)

Comment last updated on May 29, 2018 at 10:10 Hours UTC

instrument='MDI',
detector='MDI',
measurement='continuum',
directory='/')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be a problem on windows machines?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah probably. you could use os.path.sep but I don't think \ exists on windows either...

instrument='MDI',
detector='MDI',
measurement='continuum',
directory='directorynotexist')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make this inside a tmp dir so it's not related to the path of this code? pytest has a global tmpdir fixture, and then this line should be os.path.join('tmpdir', 'directorynotexist')

@Cadair Cadair added this to the 0.9.1 milestone May 30, 2018
@Cadair Cadair added [BugFix] Affects Release An issue/bug that affects a released version (use a version label too) Merge When CI Passes Hit that merge button when it's all green! labels May 30, 2018
@Cadair Cadair merged commit 5eb4c63 into sunpy:master May 30, 2018
@Cadair
Copy link
Member

Cadair commented May 30, 2018

this is missing a changelog

@vn-ki vn-ki deleted the downloadpng-fix branch May 22, 2019 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects Release An issue/bug that affects a released version (use a version label too) Merge When CI Passes Hit that merge button when it's all green!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants