Skip to content

Commit c051954

Browse files
committed
DAS-None: Add cause to re-raised exception.
I didn't know, but the message from the caught exception is not added directly to the raised exception.
1 parent d094785 commit c051954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harmony_service/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def process_item(self, item: Item, source: HarmonySource) -> Item:
145145

146146
except Exception as exception:
147147
self.logger.exception(exception)
148-
raise HyBIGServiceError from exception
148+
raise HyBIGServiceError(str(exception)) from exception
149149
finally:
150150
rmtree(working_directory)
151151

0 commit comments

Comments
 (0)