Merge pull request #120 from ccppoo/patch-2

Update decensor.py
This commit is contained in:
deeppomf 2019-04-11 09:12:53 -04:00 committed by GitHub
commit 92e2723288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ class Decensor:
self.decensor_image(ori_img, colored_img, file_name) self.decensor_image(ori_img, colored_img, file_name)
break break
else: #for...else, i.e if the loop finished without encountering break else: #for...else, i.e if the loop finished without encountering break
print("Corresponding original, uncolored image not found in {}.") print("Corresponding original, uncolored image not found in {}".format(color_file_path))
print("Check if it exists and is in the PNG or JPG format.") print("Check if it exists and is in the PNG or JPG format.")
else: else:
self.decensor_image(colored_img, colored_img, file_name) self.decensor_image(colored_img, colored_img, file_name)