Running Bas' script yesterday, there was a configuration file which could not be properly decoded. The part of the script which was crashing was inserted inside a
try:
(...)
except:
block to protect the code. The updated script is attached to this entry.