diff options
author | Ian Thompson <quornian@googlemail.com> | 2008-07-27 00:02:10 +0400 |
---|---|---|
committer | Ian Thompson <quornian@googlemail.com> | 2008-07-27 00:02:10 +0400 |
commit | 6531d859ba4f61d6741b0e06bff07d07b3231910 (patch) | |
tree | 296190829a9738a2cd04b110033e6a9f12075ce7 /release/scripts/textplugin_imports.py | |
parent | 9f19d88a5d5430b00ed63024a0832b28298dd6f7 (diff) |
TextPlugin update: Converted try-except blocks to use try-catch-else to allow better error tracking. Commented the descriptor classes and improved variable support for basic types (string, list, etc.)
Diffstat (limited to 'release/scripts/textplugin_imports.py')
-rw-r--r-- | release/scripts/textplugin_imports.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/textplugin_imports.py b/release/scripts/textplugin_imports.py index dd98ab7a26e..16d27ac1004 100644 --- a/release/scripts/textplugin_imports.py +++ b/release/scripts/textplugin_imports.py @@ -8,13 +8,13 @@ Tooltip: 'Lists modules when import or from is typed' """ # Only run if we have the required modules -OK = False try: import bpy, sys from BPyTextPlugin import * - OK = True except ImportError: - pass + OK = False +else: + OK = True def main(): txt = bpy.data.texts.active |