-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from saurabh0719/v0.5.2-develop
V0.5.3
- Loading branch information
Showing
10 changed files
with
211 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
Copyright (c) 2021, Saurabh Pujari | ||
All rights reserved. | ||
This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. | ||
""" | ||
|
||
|
||
import threading | ||
|
||
|
||
class DB_Thread(threading.Thread): | ||
def run(self): | ||
self.exception = None | ||
|
||
try: | ||
self.ret_val = self._target(*self._args) | ||
except BaseException as e: | ||
self.exception = e | ||
|
||
def join(self): | ||
super(DB_Thread, self).join() | ||
|
||
if self.exception: | ||
raise self.exception | ||
return self.ret_val |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.