Skip to content

Commit

Permalink
Merge pull request #490 from goelakash/verbose_exceptions
Browse files Browse the repository at this point in the history
Print exception message if script not loaded on installation
  • Loading branch information
henrykironde committed May 17, 2016
2 parents eb81eb6 + 17febe1 commit a848012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def MODULE_LIST(force_compile=False):
# make sure it works and then add it
new_module.SCRIPT.download
modules.append(new_module)
except:
sys.stderr.write("Failed to load script: %s (%s)" % (script_name, search_path))
except Exception as e:
sys.stderr.write("Failed to load script: %s (%s)\nException: %s \n" % (script_name, search_path, str(e)) )

return modules

Expand Down

0 comments on commit a848012

Please sign in to comment.