diff --git a/pym/calculate/lib/utils/binhosts.py b/pym/calculate/lib/utils/binhosts.py index a8d46b9..4fd3461 100644 --- a/pym/calculate/lib/utils/binhosts.py +++ b/pym/calculate/lib/utils/binhosts.py @@ -179,13 +179,17 @@ class BinhostsBase(Cachable): try: cp.read_string(data) if "update" in cp.sections(): - self.level = cp["update"]["level"] + self.level = int(cp["update"]["level"]) + + #TODO this is for debugging + # self.level = 2 + else: - self.level = 99999 + self.level = None except (CPError, KeyError) as e: - self.level = 99999 + self.level = None else: - self.level = 99999 + self.level = None except BaseException as e: if isinstance(e, KeyboardInterrupt): raise