mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-31 16:07:44 +03:00 
			
		
		
		
	Promote messagebox warnings to errors
No point in making a warning if it immediately is raised.
This commit is contained in:
		
							parent
							
								
									a8ce308b7a
								
							
						
					
					
						commit
						59ffad0090
					
				|  | @ -631,7 +631,7 @@ class MessageBox: | |||
|             secret = ENTRY_SECRET in self.getting_diff_for | ||||
| 
 | ||||
|             if not account and not secret: | ||||
|                 raise RuntimeWarning('Should not be applying the difference when neither account or secret was diff was active') | ||||
|                 raise RuntimeError('Should not be applying the difference when neither account or secret was diff was active') | ||||
| 
 | ||||
|             # Both may be active if both expired at the same time. | ||||
|             if account: | ||||
|  | @ -677,7 +677,7 @@ class MessageBox: | |||
|         secret = ENTRY_SECRET in self.getting_diff_for | ||||
| 
 | ||||
|         if not account and not secret: | ||||
|             raise RuntimeWarning('Should not be ending get difference when neither account or secret was diff was active') | ||||
|             raise RuntimeError('Should not be ending get difference when neither account or secret was diff was active') | ||||
| 
 | ||||
|         # Both may be active if both expired at the same time. | ||||
|         if account: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user