Skip to content

Commit

Permalink
Hue - Fix ABFS file upload (#2800)
Browse files Browse the repository at this point in the history
Tested using ABFSFileUploadHandler, uploaded local file and verified it appears with content.
  • Loading branch information
ranade1 committed Apr 19, 2022
1 parent e751b86 commit 2726f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/libs/azure/src/azure/abfs/upload.py
Expand Up @@ -82,7 +82,7 @@ def new_file(self, field_name, file_name, *args, **kwargs):
self._fs.create(self.target_path)
self.file = SimpleUploadedFile(name=file_name, content='')
raise StopFutureHandlers()
except (ABFSFileUploadHandler, ABFSFileSystemException) as e:
except (ABFSFileUploadError, ABFSFileSystemException) as e:
LOG.error("Encountered error in ABFSUploadHandler check_access: %s" % e)
self.request.META['upload_failed'] = e
raise StopUpload()
Expand Down

0 comments on commit 2726f2d

Please sign in to comment.