Omnibus commited on
Commit
7f21e85
1 Parent(s): a3d7998

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -221,7 +221,7 @@ def save_game(name,score,background_img,star_img,enemy_img,platform_img,dude_img
221
  return f"Game Saved\nURL: {game_url}"
222
  def predict(text, url_params):
223
  load_game=url_params.get('game')
224
- print (load_game)
225
  if load_game != None:
226
  try:
227
  r = requests.get(f'{save_data}games/{load_game}.omnigame')
@@ -231,8 +231,8 @@ def predict(text, url_params):
231
  print (lod)
232
  print (game_html)
233
  return "" + text + "",game_html
234
- except:
235
- print("cannot load game")
236
  pass
237
 
238
  else:
 
221
  return f"Game Saved\nURL: {game_url}"
222
  def predict(text, url_params):
223
  load_game=url_params.get('game')
224
+ print (f'load_game::{load_game}')
225
  if load_game != None:
226
  try:
227
  r = requests.get(f'{save_data}games/{load_game}.omnigame')
 
231
  print (lod)
232
  print (game_html)
233
  return "" + text + "",game_html
234
+ except Exception as e:
235
+ print(f"cannot load game. Error::{e}")
236
  pass
237
 
238
  else: