Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

More fun moking around the sys.path - III

Roland Geider785fe5d1a562
diff --git a/wger/email/__init__.py b/wger/email/__init__.py
index 419385554..7fb40407f 100644
--- a/wger/email/__init__.py
+++ b/wger/email/__init__.py
@@ -21,3 +21,13 @@ from wger import get_version
VERSION = get_version()
default_app_config = 'wger.email.apps.Config'
+
+
+def message_from_file(fp, *args, **kws):
+ """
+ Dummy method. Needed because this email app clashes with python's own
+ "email" package and bad things happen sometimes. See the note in tasks.py.
+
+ https://travis-ci.org/github/wger-project/wger/jobs/708008236
+ """
+ return ":("