downloads fix
This commit is contained in:
		
							parent
							
								
									e7693e5698
								
							
						
					
					
						commit
						acc41a09f5
					
				
							
								
								
									
										14
									
								
								functions.py
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								functions.py
									
									
									
									
									
								
							| @ -1540,10 +1540,16 @@ class DownloadDB: | |||||||
|                     self.db.commit() |                     self.db.commit() | ||||||
|                     self.cur.close() |                     self.cur.close() | ||||||
|             except: |             except: | ||||||
|                 self.cur.execute('drop table downloads') |                 try: | ||||||
|                 first = True |                     self.cur.execute('drop table downloads') | ||||||
|                 self.db.commit() |                     first = True | ||||||
|                 self.cur.close() |                     self.db.commit() | ||||||
|  |                     self.cur.close() | ||||||
|  |                 except: | ||||||
|  |                     self.db.close() | ||||||
|  |                     os.remove(self.filename) | ||||||
|  |                     first = True | ||||||
|  |                     self.db = sqlite.connect(self.filename, check_same_thread=False) | ||||||
| 
 | 
 | ||||||
|         if first: |         if first: | ||||||
|             cur = self.db.cursor() |             cur = self.db.cursor() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user