[bugfix] TypeError has no attr. 'message'
This commit is contained in:
		
							parent
							
								
									8ce4f05a05
								
							
						
					
					
						commit
						67b3f4f363
					
				| @ -222,7 +222,7 @@ def picksdict_from_picks(evt): | |||||||
|             lpp = mpp + pick.time_errors.upper_uncertainty |             lpp = mpp + pick.time_errors.upper_uncertainty | ||||||
|             epp = mpp - pick.time_errors.lower_uncertainty |             epp = mpp - pick.time_errors.lower_uncertainty | ||||||
|         except TypeError as e: |         except TypeError as e: | ||||||
|             msg = e.message + ',\n falling back to symmetric uncertainties' |             msg = e + ',\n falling back to symmetric uncertainties' | ||||||
|             warnings.warn(msg) |             warnings.warn(msg) | ||||||
|             lpp = mpp + spe |             lpp = mpp + spe | ||||||
|             epp = mpp - spe |             epp = mpp - spe | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user