From a522eb2034e3492883f651001ce27a3ff1ab8675 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Mon, 17 Jan 2022 13:01:10 +0800 Subject: [PATCH] PEP8 --- Whatsapp_Chat_Exporter/__main__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Whatsapp_Chat_Exporter/__main__.py b/Whatsapp_Chat_Exporter/__main__.py index 439296e..06a4e39 100644 --- a/Whatsapp_Chat_Exporter/__main__.py +++ b/Whatsapp_Chat_Exporter/__main__.py @@ -166,11 +166,13 @@ def main(): ) exit(2) - if os.path.isdir(options.media) and not os.path.isdir(f"{options.output}/{options.media}"): + if os.path.isdir(options.media) and \ + not os.path.isdir(f"{options.output}/{options.media}"): try: shutil.move(options.media, f"{options.output}/") except PermissionError: - print("Cannot remove original WhatsApp directory. Perhaps the directory is opened?") + print("Cannot remove original WhatsApp directory. " + "Perhaps the directory is opened?") if options.json: with open("result.json", "w") as f: