Skip to content
This repository has been archived by the owner on Aug 30, 2017. It is now read-only.

FIX: fix key error during export #135

Merged
merged 2 commits into from
Apr 19, 2017
Merged

Conversation

CJ-Wright
Copy link
Contributor

Fix a key error during export, root can not exist at which point it is None.

Fix a key error during export, root can not exist at which point it is `None`.
@CJ-Wright
Copy link
Contributor Author

@tacaswell @danielballan @arkilic ready for review.

filestore/fs.py Outdated
@@ -415,7 +415,7 @@ def safe_hook(n, total, old_name, new_name):
file_list = self.get_file_list(resource, datum_kwarg_gen)

# check that all files share the same root
old_root = resource['root']
old_root = resource.get('root', None)
Copy link
Contributor

Choose a reason for hiding this comment

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

.get('root') is equivalent to .get('root', None).

@danielballan danielballan merged commit 1d185c3 into NSLS-II:master Apr 19, 2017
@danielballan
Copy link
Contributor

Thanks for the fix!

@CJ-Wright CJ-Wright deleted the patch-1 branch April 19, 2017 19:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants