diff options
Diffstat (limited to 'TurtleArtActivity.py')
-rw-r--r-- | TurtleArtActivity.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py index efebb96..c6c00b9 100644 --- a/TurtleArtActivity.py +++ b/TurtleArtActivity.py @@ -1076,7 +1076,7 @@ in order to use the plugin.')) tmp_dir = tempfile.mkdtemp() - if True: # try: + try: tar_fd.extractall(tmp_dir) if not plugin: # Looking for a .ta file @@ -1087,10 +1087,10 @@ in order to use the plugin.')) self.tw.load_files(turtle_code, run_it) else: self._load_a_plugin(tmp_dir) - else: # except: + except: _logger.debug('Could not extract files from %s.' % ( file_path)) - if True: # finally: + finally: if not plugin: shutil.rmtree(tmp_dir) tar_fd.close() |