I’m reading this script. It synchronizes files via FTP.
I’m confused with this statement in line 106
try:
...
except error_perm, msg:
...
It seems the variables error_perm and msg come from nowhere. When the try part goes wrong, the script halts and fails to go into the except part.
You have the next import on the top of the file:
error_permis an error class.statement
catches any exception with type
error_permand stores exception object in variablemsg.