Check if parameter 'options' is None in cmd_dist_xo

When is used to clone a activity from sugar,
the options parameter is set to None.
The other uses of no_fail have False as default value
but this case was missing.
The effect of this error is that a .xo is not created in the Journal,
when the user select 'Duplicate' in the View Source window.
master
Gonzalo Odiard 9 years ago
parent 16107a3985
commit 100a6b56b6

@ -350,8 +350,11 @@ def cmd_dev(config, options):
def cmd_dist_xo(config, options):
"""Create a xo bundle package"""
no_fail = False
if options is not None:
no_fail = options.no_fail
packager = XOPackager(Builder(config, options.no_fail))
packager = XOPackager(Builder(config, no_fail))
packager.package()

Loading…
Cancel
Save