-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
Signed-off-by: Peace Lee <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,12 +16,18 @@ | |
|
||
|
||
|
||
# import sys package # | ||
try: | ||
import sys | ||
except ImportError: | ||
print("[ERROR] fail to import sys package") | ||
sys.exit(0) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
iipeace
Author
Owner
|
||
|
||
# import essential packages # | ||
try: | ||
import os | ||
import re | ||
import gc | ||
import sys | ||
import time | ||
import errno | ||
import signal | ||
|
@@ -31,7 +37,7 @@ | |
#from ctypes import * | ||
except ImportError: | ||
err = sys.exc_info()[1] | ||
print("[ERROR] fail to import essential packages: %s" % err.args[0]) | ||
print("[ERROR] fail to import essential package: %s" % err.args[0]) | ||
sys.exit(0) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
# convert an unsupported type # | ||
|
2 comments
on commit 22a623e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- It would have been nice to avoid a typo in the commit subject.
- I would appreciate more helpful commit descriptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your feedback!
This statement is still questionable here. 🤔
How do you think about to omit additional exception handling for such a special case?