Skip to content

Fixed broken zip exporter due to unintialized vars and python traceback #1674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions workspace_tools/export/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def export(project_path, project_name, ide, target, destination='/tmp/',
if tempdir is None:
tempdir = tempfile.mkdtemp()

use_progen = False
supported = True
report = {'success': False, 'errormsg':''}

if ide is None or ide == "zip":
# Simple ZIP exporter
try:
Expand All @@ -80,9 +83,6 @@ def export(project_path, project_name, ide, target, destination='/tmp/',
else:
Exporter = EXPORTERS[ide]
target = EXPORT_MAP.get(target, target)
# use progen targets or mbed exporters targets, check progen attribute
use_progen = False
supported = True
try:
if Exporter.PROGEN_ACTIVE:
use_progen = True
Expand Down