mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:48:58 +08:00
Update cura/Snapshot.py
Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
This commit is contained in:
parent
02fd7546a1
commit
28997b0b14
@ -200,7 +200,7 @@ class Snapshot:
|
|||||||
Logger.logException("w", f"Failed to crop the snapshot! {e}")
|
Logger.logException("w", f"Failed to crop the snapshot! {e}")
|
||||||
return None
|
return None
|
||||||
elif number_of_attempts == 0:
|
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
|
return None
|
||||||
else:
|
else:
|
||||||
number_of_attempts = number_of_attempts - 1
|
number_of_attempts = number_of_attempts - 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user