diff --git a/cubids/cubids.py b/cubids/cubids.py index 6fdba68b..842215e0 100644 --- a/cubids/cubids.py +++ b/cubids/cubids.py @@ -150,7 +150,7 @@ def datalad_undo_last_commit(self): Uses git reset --hard to revert to the previous commit. """ if not self.is_datalad_clean(): - raise Exception("Untracked changes present. " "Run clear_untracked_changes first") + raise Exception("Untracked changes present. Run clear_untracked_changes first") reset_proc = subprocess.run(["git", "reset", "--hard", "HEAD~1"], cwd=self.path) reset_proc.check_returncode() diff --git a/cubids/validator.py b/cubids/validator.py index 7e78bacc..3f670041 100644 --- a/cubids/validator.py +++ b/cubids/validator.py @@ -38,7 +38,7 @@ def build_subject_paths(bids_dir): subjects = glob.glob(bids_dir) if len(subjects) < 1: - raise ValueError("Couldn't find any subjects " "in the specified directory:\n" + bids_dir) + raise ValueError("Couldn't find any subjects in the specified directory:\n" + bids_dir) subjects_dict = {} @@ -93,7 +93,7 @@ def parse_issue(issue_dict): return_dict["files"] = [ get_nested(x, "file", "relativePath") for x in issue_dict.get("files", "") ] - return_dict["type"] = issue_dict.get("key" "") + return_dict["type"] = issue_dict.get("key", "") return_dict["severity"] = issue_dict.get("severity", "") return_dict["description"] = issue_dict.get("reason", "") return_dict["code"] = issue_dict.get("code", "")