From 522e5e857b105ea24fc3f1269ff81b009d6ffb92 Mon Sep 17 00:00:00 2001 From: wijnand Date: Thu, 28 Jun 2018 18:35:52 +0200 Subject: [PATCH] ensure float is returned --- colorbleed/lib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/colorbleed/lib.py b/colorbleed/lib.py index e93296fbc0..e1fe8b7e69 100644 --- a/colorbleed/lib.py +++ b/colorbleed/lib.py @@ -253,7 +253,7 @@ def get_project_fps(): """Returns project's FPS, if not found will return 25 by default Returns: - int, float + float """ project_name = io.active_project() @@ -264,6 +264,6 @@ def get_project_fps(): config = project.get("config", None) assert config, "This is a bug" - fps = config.get("fps", 25) + fps = config.get("fps", 25.0) - return fps + return float(fps)