diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-11-14 22:27:18 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-11-14 22:27:18 +0000 |
commit | fa6fb5c9da640532db63db2aa9111c523cb35fe4 (patch) | |
tree | 2d8ef6fa4612960b3f19c467b3e0a6c5e100fa9c /RepSys/svn.py | |
parent | a927524c43d391579a17b3630606f350f44acf3c (diff) | |
download | mgarepo-fa6fb5c9da640532db63db2aa9111c523cb35fe4.tar mgarepo-fa6fb5c9da640532db63db2aa9111c523cb35fe4.tar.gz mgarepo-fa6fb5c9da640532db63db2aa9111c523cb35fe4.tar.bz2 mgarepo-fa6fb5c9da640532db63db2aa9111c523cb35fe4.tar.xz mgarepo-fa6fb5c9da640532db63db2aa9111c523cb35fe4.zip |
Don't say "invalid command CMD" when this is not the real error
Sometimes when a module used by repsys is missing, the given error message
is "invalid command CMD", instead of a exception trace showing that there's
something wrong with with the repsys setup.
This change fixes this issue by counting the number of frames in the
exception trace. When the command module is not available there will be
only one frame (being the function that is trying to import the command's
module), otherwise there will be more frames (because the found module will
already be present in the trace).
This fix is probably valid for smart too.
Diffstat (limited to 'RepSys/svn.py')
0 files changed, 0 insertions, 0 deletions