From 08cb47c2ec3d83690e61dedf5129fd07e30402e1 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 4 Dec 2012 23:49:14 +0100 Subject: container.settingsobject: added warning about commands.py --- ranger/container/settingobject.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ranger/container/settingobject.py b/ranger/container/settingobject.py index e6acf35b..70eac7b5 100644 --- a/ranger/container/settingobject.py +++ b/ranger/container/settingobject.py @@ -108,11 +108,13 @@ class SettingObject(SignalDispatcher, FileManagerAware): typ = ALLOWED_SETTINGS[name] if isfunction(typ): assert typ(value), \ - "The option `" + name + "' has an incorrect type!" + "Warning: The option `" + name + "' has an incorrect type!" else: assert isinstance(value, typ), \ - "The option `" + name + "' has an incorrect type!"\ - " Got " + str(type(value)) + ", expected " + str(typ) + "!" + "Warning: The option `" + name + "' has an incorrect type!"\ + " Got " + str(type(value)) + ", expected " + str(typ) + "!" +\ + " Please check if your commands.py is up to date." if not \ + self.fm.ui.is_set_up else "" return True __getitem__ = __getattr__ -- cgit 1.4.1-2-gfad0