Tuchuanhuhuhu commited on
Commit
f4d58e4
·
1 Parent(s): 8728d12

bugfix: may raise error on first launch

Browse files
Files changed (1) hide show
  1. modules/models/models.py +1 -1
modules/models/models.py CHANGED
@@ -118,7 +118,7 @@ def get_model(
118
  traceback.print_exc()
119
  msg = f"{STANDARD_ERROR_MSG}: {e}"
120
  presudo_key = hide_middle_chars(access_key)
121
- if original_model is not None:
122
  model.history = original_model.history
123
  model.history_file_path = original_model.history_file_path
124
  if dont_change_lora_selector:
 
118
  traceback.print_exc()
119
  msg = f"{STANDARD_ERROR_MSG}: {e}"
120
  presudo_key = hide_middle_chars(access_key)
121
+ if original_model is not None and model is not None:
122
  model.history = original_model.history
123
  model.history_file_path = original_model.history_file_path
124
  if dont_change_lora_selector: