mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-09-07 19:53:07 +02:00
PEP8
This commit is contained in:
@@ -166,11 +166,13 @@ def main():
|
|||||||
)
|
)
|
||||||
exit(2)
|
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:
|
try:
|
||||||
shutil.move(options.media, f"{options.output}/")
|
shutil.move(options.media, f"{options.output}/")
|
||||||
except PermissionError:
|
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:
|
if options.json:
|
||||||
with open("result.json", "w") as f:
|
with open("result.json", "w") as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user