changeset 1906:58f25b274536

jp (blog/edit): removed meta_file_path non existence check, as it is now re-used if it exists
author Goffi <goffi@goffi.org>
date Thu, 10 Mar 2016 19:13:42 +0100
parents e0bfdd379e8d
children 0b748ad46ede
files frontends/src/jp/cmd_blog.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/jp/cmd_blog.py	Thu Mar 10 18:05:37 2016 +0100
+++ b/frontends/src/jp/cmd_blog.py	Thu Mar 10 19:13:42 2016 +0100
@@ -193,8 +193,6 @@
 
         # then we create the file and write metadata there, as JSON dict
         # XXX: if we port jp one day on Windows, O_BINARY may need to be added here
-        if os.path.exists(meta_file_path):
-            self.disp(u"metadata file {} already exists, this should not happen! Cancelling...", error=True)
         with os.fdopen(os.open(meta_file_path, os.O_RDWR | os.O_CREAT ,0o600), 'w+b') as f:
             # we need to use an intermediate unicode buffer to write to the file unicode without escaping characters
             unicode_dump = json.dumps(mb_data, ensure_ascii=False, indent=4, separators=(',', ': '), sort_keys=True)