While thus looking upwards , he unknowingly trod upon a Viper asleep just before his feet .