Skip to content

Commit 4ea6719

Browse files
committed
fix: access option.temp_dir correctly
1 parent 6d53f0e commit 4ea6719

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)