bugfix, key might not be defined for errors in positional arguments