diff options
-rw-r--r-- | module/obmc/wsgi/apps/rest_dbus.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py index c44a45d..540322b 100644 --- a/module/obmc/wsgi/apps/rest_dbus.py +++ b/module/obmc/wsgi/apps/rest_dbus.py @@ -693,7 +693,7 @@ class ImageUploadUtils: @classmethod def do_upload(cls, filename=''): if not os.path.exists(cls.file_loc): - os.makedirs(cls.file_loc) + abort(500, "Error Directory not found") if not filename: handle, filename = tempfile.mkstemp(cls.file_suffix, cls.file_prefix, cls.file_loc) |