Skip to content

Commit

Permalink
Merge pull request #429 from jlowin/import_err
Browse files Browse the repository at this point in the history
more informative error message
  • Loading branch information
mistercrunch committed Sep 19, 2015
2 parents 5aacb51 + 028e713 commit 4820509
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions airflow/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,9 @@ def import_module_attrs(parent_module_globals, module_attrs_dict):
for attr in attrs:
parent_module_globals[attr] = getattr(module, attr)
imported_attrs += [attr]
except:
logging.debug("Couldn't import module " + mod)
except Exception as err:
logging.debug("Error importing module {mod}: {err}".format(
mod=mod, err=err))
return imported_attrs


Expand Down

0 comments on commit 4820509

Please sign in to comment.