Skip to content

Commit 1f854b1

Browse files
authored
Merge pull request #211 from mishawakerman/issue-210-restore-options-temp-dir
fix: access option.temp_dir correctly
2 parents fb66e74 + 4ea6719 commit 1f854b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rethinkdb/_restore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def parse_options(argv, prog=None):
180180
"Temporary directory doesn't exist or is not a directory: %s"
181181
% options.temp_dir
182182
)
183-
if not os.access(options["temp_dir"], os.W_OK):
183+
if not os.access(options.temp_dir, os.W_OK):
184184
parser.error("Temporary directory inaccessible: %s" % options.temp_dir)
185185

186186
# - create_args

0 commit comments

Comments
 (0)