Added
Link Here
|
1 |
diff --git a/datetimewidget/widgets.py b/datetimewidget/widgets.py |
2 |
index c62930a..3675f0e 100644 |
3 |
--- datetimewidget/widgets.py.orig |
4 |
+++ datetimewidget/widgets.py |
5 |
@@ -131,7 +131,7 @@ class DateTimeWidget(MultiWidget): |
6 |
] |
7 |
try: |
8 |
D = to_current_timezone(datetime.strptime(date_time[0], self.format)) |
9 |
- except (ValueError, TypeError), e: |
10 |
+ except (ValueError, TypeError) as e : |
11 |
return '' |
12 |
else: |
13 |
return D |
14 |
@@ -181,4 +181,4 @@ class DateTimeWidget(MultiWidget): |
15 |
}, |
16 |
js=js |
17 |
) |
18 |
- media = property(_media) |
19 |
\ No newline at end of file |
20 |
+ media = property(_media) |