Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
migrations: Handle missing emoji/images/still/ directory.
Alex Vandivere8a049ea5759
diff --git a/zerver/migrations/0553_copy_emoji_images.py b/zerver/migrations/0553_copy_emoji_images.pyindex be6daa24271..cb3d2b48a5f 100644--- a/zerver/migrations/0553_copy_emoji_images.py+++ b/zerver/migrations/0553_copy_emoji_images.py@@ -174,6 +174,7 @@ def thumbnail_local_emoji(apps: StateApps) -> None:fh.write(animated)if still is not None:+ os.makedirs(f"{base_path}/still", exist_ok=True)filename_no_extension = os.path.splitext(new_file_name)[0]with open(f"{base_path}/still/{filename_no_extension}.png", "wb") as fh:fh.write(still)