File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import cloudinary
22
3- __version__ = "0.4.0 "
3+ __version__ = "0.4.1 "
44
55cloudinary .USER_PLATFORM = "CloudinaryCLI/{}" .format (__version__ )
Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ def initialize():
5858 if os .path .exists (OLD_CLOUDINARY_CLI_CONFIG_FILE ):
5959 with open (OLD_CLOUDINARY_CLI_CONFIG_FILE ) as f :
6060 try :
61- old_config = json .loads (f .read ())
61+ old_config = json .loads (f .read () or "{}" )
6262 except Exception as e :
6363 raise json .JSONDecodeError ("Unable to parse old Cloudinary config file" )
6464
6565 with open (CLOUDINARY_CLI_CONFIG_FILE ) as f :
6666 try :
67- new_config = json .loads (f .read ())
67+ new_config = json .loads (f .read () or "{}" )
6868 except Exception as e :
6969 raise json .JSONDecodeError ("Unable to parse Cloudinary config file" )
7070 new_config .update (old_config )
You can’t perform that action at this time.
0 commit comments