Skip to content

Commit

Permalink
Replace bare except with AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
dlstadther committed Oct 31, 2017
1 parent cf50114 commit ed29e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luigi/contrib/docker_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def run(self):
container_name = self.name
try:
message = e.message
except:
except AttributeError:
message = str(e)
self.__logger.error("Container " + container_name +
" exited with non zero code: " + message)
Expand Down

0 comments on commit ed29e95

Please sign in to comment.