Update cura/Snapshot.py

Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
This commit is contained in:
Saumya Jain 2024-03-08 16:38:57 +01:00 committed by GitHub
parent 02fd7546a1
commit 28997b0b14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -200,7 +200,7 @@ class Snapshot:
Logger.logException("w", f"Failed to crop the snapshot! {e}")
return None
elif number_of_attempts == 0:
Logger.warning( f"Failed to crop the snapshot even after 10 attempts!")
Logger.warning( f"Failed to crop the snapshot even after {Snapshot.ATTEMPTS_FOR_SNAPSHOT} attempts!")
return None
else:
number_of_attempts = number_of_attempts - 1