mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-02-10 19:22:24 +00:00
PEP8
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user