mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Use os_rename
This commit is contained in:
parent
de8a5131d1
commit
2dae20933e
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ def rename_renewal_config(prev_name, new_name, cli_config):
|
|||
raise errors.ConfigurationError("The new certificate name "
|
||||
"is already in use.")
|
||||
try:
|
||||
os.rename(prev_filename, new_filename)
|
||||
misc.os_rename(prev_filename, new_filename)
|
||||
except OSError:
|
||||
raise errors.ConfigurationError("Please specify a valid filename "
|
||||
"for the new certificate name.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue