Skip to content

Commit e53d343

Browse files
committed
Catch another possible exception when determining the timezone.
This change makes the test suite run to completion under FreeBSD.
1 parent a146e1b commit e53d343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: mig/shared/install.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def determine_timezone(_environ=os.environ, _path_exists=os.path.exists, _print=
110110
localtime_timezone = '/'.join(
111111
zoneinfo_path_parts[zoneinfo_index + 1:])
112112
return localtime_timezone
113-
except IndexError:
113+
except (IndexError, ValueError):
114114
pass
115115

116116
_print("WARNING: ignoring non-standard /etc/localtime")

0 commit comments

Comments
 (0)