diff --git a/rowers/mailprocessing.py b/rowers/mailprocessing.py index 803d65e0..9d3d824d 100644 --- a/rowers/mailprocessing.py +++ b/rowers/mailprocessing.py @@ -110,7 +110,7 @@ def make_new_workout_from_email(rower, datafile, name, cntr=0,testing=False): f,e = os.path.splitext(datafilename) - if fileformat == 'unknown' and e is not 'txt': + if fileformat == 'unknown' and 'txt' not in e: fcopy = "media/"+datafilename if not testing: if settings.CELERY: