Преглед изворни кода

acme_updater,acme_tlsa_mail: switch source to destination in logging in the copy_file function (fixes #7)

Helmut Pozimski пре 7 година
родитељ
комит
e9853e9272
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      acme_tlsa_mail.py
  2. 1 1
      acme_updater.py

+ 1 - 1
acme_tlsa_mail.py

@@ -150,7 +150,7 @@ def copy_file(source, destination, backup=True):
         try:
             shutil.copy(destination, backup_file)
         except IOError:
-            LOGGER.error("Creating of backup file for %s failed!", source)
+            LOGGER.error("Creating of backup file for %s failed!", destination)
             return False
     try:
         shutil.copy(source, destination)

+ 1 - 1
acme_updater.py

@@ -114,7 +114,7 @@ def copy_file(source, destination, backup=True):
         try:
             shutil.copy(destination, backup_file)
         except IOError:
-            LOGGER.error("Creating of backup file for %s failed!", source)
+            LOGGER.error("Creating of backup file for %s failed!", destination)
             return False
     try:
         shutil.copy(source, destination)