cfpb / regulations-site

(DEPRECATED) Web interface for viewing U.S. federal regulations and other regulatory information
Other
28 stars 43 forks source link

regulations from the future #829

Closed grapesmoker closed 7 years ago

grapesmoker commented 7 years ago

Currently, if a regulation exists only in the future, current will be an empty list and trying to access its components will result in an IndexError. Instead, if current is empty, we should make the next_version the current_version.

grapesmoker commented 7 years ago

Added.

chosak commented 7 years ago

Thanks, looks good.