Skip to content

Commit e9a7878

Browse files
committed
enable holiday fetcher for countries without data (e.g. in Africa)
1 parent 536f60a commit e9a7878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

revoletion/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def custom_warning_handler(message, category, filename, lineno, file=None, line=
343343
self.holiday_dates = sorted(
344344
getattr(holidays, self.country)(years=years,
345345
state=self.state))
346-
except NotImplementedError: # not for all countries the states are available (e.g. France)
346+
except: # not for all countries the states are available (e.g. France)
347347
try:
348348
self.holiday_dates = sorted(
349349
getattr(holidays, self.country)(years=years))

0 commit comments

Comments
 (0)