(id_file_path)
| 186 | |
| 187 | |
| 188 | def _user_id_file_is_old(id_file_path): |
| 189 | if os.path.exists(id_file_path): |
| 190 | last_24_hours = datetime.now() - timedelta(hours=24) |
| 191 | id_file_modified_time = datetime.fromtimestamp(os.path.getmtime(id_file_path)) |
| 192 | |
| 193 | return id_file_modified_time < last_24_hours |
| 194 | return False |
| 195 | |
| 196 | |
| 197 | @decorators.suppress_all_exceptions(fallback_return='') |