Fix multiple exceptions

Turns out that this syntax needs to be surrounded in brackets.

Contributes to issue CURA-844.
This commit is contained in:
Ghostkeeper 2016-04-19 16:12:13 +02:00 committed by Ghostkeeper
parent ccf9796b51
commit 816e94c760
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ import io #To write config files to strings as if they were files.
def importVersion1(serialised):
try:
return MachineInstance(serialised)
except configparser.Error, SettingsError.InvalidFormatError, SettingsError.InvalidVersionError:
except (configparser.Error, SettingsError.InvalidFormatError, SettingsError.InvalidVersionError):
return None
## A representation of a machine instance used as intermediary form for