1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Improve error message

This commit is contained in:
Mo 2022-05-18 01:25:51 +02:00
parent 6ea51b1235
commit ec3664a30a

View file

@ -167,7 +167,7 @@ def importFromFile(filePath):
if not dbPart: if not dbPart:
raise DataBaseImportException( raise DataBaseImportException(
f"Part with number {partNumber} and program_label {partProgramLabel} does not exist in the database! Please make sure that you create parts from the web interface first." f"Part with number {partNumber} and program label {partProgramLabel} does not exist in the database! Please make sure that you create parts from the web interface first."
) )
dbParts[id] = dbPart dbParts[id] = dbPart