diff options
author | hut <hut@lavabit.com> | 2012-12-04 23:49:14 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-12-04 23:49:14 +0100 |
commit | 08cb47c2ec3d83690e61dedf5129fd07e30402e1 (patch) | |
tree | 4b6a1a534749fe656c9bdc1b065070a033be2883 | |
parent | 2b197fa97b96f04bff472bd77049a9f16aad8b93 (diff) | |
download | ranger-08cb47c2ec3d83690e61dedf5129fd07e30402e1.tar.gz |
container.settingsobject: added warning about commands.py
-rw-r--r-- | ranger/container/settingobject.py | 8 |
1 files 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__ |