Skip to content

Commit

Permalink
Merge pull request hpcugent#78 from wdpypere/python2
Browse files Browse the repository at this point in the history
remove sys.exc_clear, it does not exist in python3
  • Loading branch information
stdweird authored Apr 15, 2021
2 parents 71acde3 + 5785010 commit 2f2a18b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vsc/utils/script_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ def critical_exception_handler(self, tp, value, traceback):
self.log.exception("unhandled exception detected: %s - %s", tp, value)
self.log.debug("traceback %s", traceback)
message = "Script failure: %s - %s" % (tp, value)
sys.exc_clear()
self.critical(message)


Expand Down Expand Up @@ -334,6 +333,7 @@ def do(self, dry_run): #pylint: disable=unused-argument
"""
logging.error("`do` method not implemented")
raise Exception("Not implemented")
return "Not implemented"

def make_time(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@


PACKAGE = {
'version': '2.1.8',
'version': '2.1.9',
'author': [ag, sdw],
'maintainer': [ag, sdw],
'excluded_pkgs_rpm': ['vsc', 'vsc.utils'], # vsc is default, vsc.utils is provided by vsc-base
Expand Down

0 comments on commit 2f2a18b

Please sign in to comment.