Support patch for #4486

This commit is contained in:
Miroslav Stampar
2020-12-18 12:13:07 +01:00
parent 9c95445723
commit bae7766e64
2 changed files with 7 additions and 1 deletions

View File

@@ -326,6 +326,12 @@ def main():
logger.critical(errMsg)
raise SystemExit
elif "Permission denied: '" in excMsg:
match = re.search(r"Permission denied: '([^']*)", excMsg)
errMsg = "permission error occurred while accessing file '%s'" % match.group(1)
logger.critical(errMsg)
raise SystemExit
elif all(_ in excMsg for _ in ("twophase", "sqlalchemy")):
errMsg = "please update the 'sqlalchemy' package (>= 1.1.11) "
errMsg += "(Reference: 'https://qiita.com/tkprof/items/7d7b2d00df9c5f16fffe')"