Omnibus commited on
Commit
56afc60
·
verified ·
1 Parent(s): 189574e

Update screenshot.py

Browse files
Files changed (1) hide show
  1. screenshot.py +4 -1
screenshot.py CHANGED
@@ -31,4 +31,7 @@ def create_ss(graph):
31
  driver.set_window_size(int(width), int(height))
32
  obj = driver.find_element(By.ID, "chart_box")
33
  screenshot = obj.screenshot(f'{uid}-tmp.png')
34
- return(f'{uid}-tmp.png')
 
 
 
 
31
  driver.set_window_size(int(width), int(height))
32
  obj = driver.find_element(By.ID, "chart_box")
33
  screenshot = obj.screenshot(f'{uid}-tmp.png')
34
+ return(f'{uid}-tmp.png')
35
+ except Exception as e:
36
+ print(e)
37
+ return None