diff options
Diffstat (limited to 'tanken.py')
| -rw-r--r-- | tanken.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ def tanken(drives, cost, service_charge=0): for d in drives: try: d[0] = int(d[0]) - except: + except (IndexError, ValueError): return None, "Lines have to start with the driven distance!" # calculate overall distance |
