File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ def setSubmodules(self, submodules):
266266
267267 def fetch (self , * args ):
268268 self .cancel ()
269+ self ._errorData = b''
269270 self ._thread = LogsFetcherThread (self ._submodules , self )
270271 self ._thread .logsAvailable .connect (self .logsAvailable )
271272 self ._thread .fetchFinished .connect (self ._onFetchFinished )
@@ -282,9 +283,10 @@ def isLoading(self):
282283 self ._thread .isRunning ()
283284
284285 def _onFetchFinished (self , exitCode ):
285- self ._errorData = self ._thread .errorData
286- self ._thread = None
287- self .fetchFinished .emit (exitCode )
286+ if self ._thread :
287+ self ._errorData = self ._thread .errorData
288+ self ._thread = None
289+ self .fetchFinished .emit (exitCode )
288290
289291 @property
290292 def errorData (self ):
You can’t perform that action at this time.
0 commit comments