getavalon / core

The safe post-production pipeline - https://getavalon.github.io/2.0
MIT License
218 stars 49 forks source link

RuntimeError doesn't have `message` attribute in Python 3 #463

Closed jasperges closed 4 years ago

jasperges commented 4 years ago

In the loader the message of an exception is checked to see if it contains 'already deleted' (see here). To do this the message atrribute is checked. In Python 3 this doesn't exist. A simple, straightforward fix would be to use str(e) instead of e.message. This works in both Python 2 and 3.

~Pull request follows.~ Pull request: #464