@@ -103,7 +103,7 @@ def __init__(
103
103
self .try_start_next_job ()
104
104
105
105
except Exception as e :
106
- raise (e )
106
+ raise ExceptionAwsIotJobs (e )
107
107
108
108
def try_start_next_job (self ) -> None :
109
109
logger .debug ("Trying to start the next job..." )
@@ -156,7 +156,7 @@ def on_next_job_execution_changed(self, event: iotjobs.NextJobExecutionChangedEv
156
156
logger .debug ("Received Next Job Execution Changed event: " , "None. Waiting for further jobs..." )
157
157
158
158
except Exception as e :
159
- raise (e )
159
+ raise ExceptionAwsIotJobs (e )
160
160
161
161
def on_publish_start_next_pending_job_execution (self , future : Future ) -> None : # type: ignore
162
162
try :
@@ -165,7 +165,7 @@ def on_publish_start_next_pending_job_execution(self, future: Future) -> None:
165
165
logger .debug ("Published request to start the next job." )
166
166
167
167
except Exception as e :
168
- raise (e )
168
+ raise ExceptionAwsIotJobs (e )
169
169
170
170
def on_start_next_pending_job_execution_accepted (self , response ):
171
171
# type: (iotjobs.StartNextJobExecutionResponse) -> None
@@ -191,7 +191,7 @@ def on_start_next_pending_job_execution_accepted(self, response):
191
191
self .done_working_on_job ()
192
192
193
193
except Exception as e :
194
- raise (e )
194
+ raise ExceptionAwsIotJobs (e )
195
195
196
196
def on_start_next_pending_job_execution_rejected (self , rejected : iotjobs .RejectedError ) -> None :
197
197
raise ExceptionAwsIotJobs (
@@ -236,14 +236,14 @@ def on_publish_update_job_execution(self, future: Future) -> None: # type: igno
236
236
logger .debug ("Published request to update job." )
237
237
238
238
except Exception as e :
239
- raise (e )
239
+ raise ExceptionAwsIotJobs (e )
240
240
241
241
def on_update_job_execution_accepted (self , response : iotjobs .UpdateJobExecutionResponse ) -> None :
242
242
try :
243
243
logger .debug ("Request to update job was accepted." )
244
244
self .done_working_on_job ()
245
245
except Exception as e :
246
- raise (e )
246
+ raise ExceptionAwsIotJobs (e )
247
247
248
248
def on_update_job_execution_rejected (self , rejected : iotjobs .RejectedError ) -> None :
249
249
raise ExceptionAwsIotJobs (
0 commit comments