diff --git a/alluxiofs/core.py b/alluxiofs/core.py index f4d11e0..284de5e 100644 --- a/alluxiofs/core.py +++ b/alluxiofs/core.py @@ -545,9 +545,9 @@ def flush(self, force=False): self.offset = 0 try: self._initiate_upload() - except: + except Exception as e: self.closed = True - raise + raise e if self._upload_chunk(final=force) is not False: self.offset += self.buffer.seek(0, 2)