From e08b6defc33ddc00501d838f5a6f30c0bbdb8b97 Mon Sep 17 00:00:00 2001 From: deeplow Date: Tue, 26 Sep 2023 12:04:13 +0100 Subject: [PATCH] Round conversion progress from float to int Fixes #553 --- dangerzone/isolation_provider/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dangerzone/isolation_provider/base.py b/dangerzone/isolation_provider/base.py index c3484b3..484c604 100644 --- a/dangerzone/isolation_provider/base.py +++ b/dangerzone/isolation_provider/base.py @@ -78,7 +78,7 @@ class IsolationProvider(ABC): def print_progress_trusted( self, document: Document, error: bool, text: str, percentage: float ) -> None: - return self._print_progress(document, error, text, percentage) + return self._print_progress(document, error, text, int(percentage)) def print_progress( self, document: Document, error: bool, untrusted_text: str, percentage: float